Esempio n. 1
0
HEADERS = {
    'User-Agent':
    'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36',
    'Accept':
    'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Cache-Control': 'no-transform'
}

ICON = {
    'movie': 'moviesicon.png',
    'search': 'searchicon.png',
    'settings': 'settingsicon.png'
}

PLUGIN_PATH = plugin.getPluginPath()

for k, v in ICON.iteritems():
    ICON[k] = os.path.join(PLUGIN_PATH, 'resources', 'media', v)

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
    addDir('Categorii', URL['base'], 1, ICON['movie'])
    addDir('Adaugate Recent', URL['newMovies'], 11, ICON['movie'])
    addDir('Cautare', URL['base'], 2, ICON['search'])
Esempio n. 2
0
URL['search']		= 'http://www.cinemaxx.rs/search.php?keywords='
URL['newMovies']	= 'http://www.cinemaxx.rs/newvideos.html'

HEADERS = {
	'User-Agent': 	 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36',
	'Accept': 		 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
	'Cache-Control': 'no-transform'
}

ICON = {
	'movie':	'moviesicon.png',
	'search':	'searchicon.png',
	'settings': 'settingsicon.png'
}

PLUGIN_PATH = plugin.getPluginPath()

for k, v in ICON.iteritems():
	ICON[k] = os.path.join(PLUGIN_PATH, 'resources', 'media', v)

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
	addDir('Categorii', URL['base'], 1, ICON['movie'])
	addDir('Adaugate Recent', URL['newMovies'], 11, ICON['movie'])
	addDir('Cautare', URL['base'], 2, ICON['search'])
Esempio n. 3
0
import xbmcplugin, xbmcgui
import plugin, db
from resources.lib.BeautifulSoup import BeautifulSoup
from resources.lib.ga import track


siteUrl		= 'http://www.990.ro/'
searchUrl	= 'http://www.990.ro/functions/search3/live_search_using_jquery_ajax/search.php'
tvShowsUrl	= 'http://www.990.ro/seriale-lista.html'
moviesUrl	= 'http://www.990.ro/toate-filmele.php'

USER_AGENT 	= 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36'
ACCEPT 		= 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'


TVshowsIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'tvshowsicon.png')
MoviesIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'moviesicon.png')
SearchIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'searchicon.png')
InfoIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'inficon.png')
SettingsIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'settingsicon.png')

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
	addDir('TV Shows',tvShowsUrl,4,TVshowsIcon)
	addDir('Movies',moviesUrl,10,MoviesIcon)
Esempio n. 4
0
import xbmcplugin, xbmcgui
import plugin, db
from resources.lib.BeautifulSoup import BeautifulSoup
from resources.lib.ga import track


siteUrl		= 'http://www.990.ro/'
searchUrl	= 'http://www.990.ro/functions/search3/live_search_using_jquery_ajax/search.php'
tvShowsUrl	= 'http://www.990.ro/seriale-lista.html'
moviesUrl	= 'http://www.990.ro/toate-filmele.php'

USER_AGENT 	= 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36'
ACCEPT 		= 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'


TVshowsIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'tvshowsicon.png')
MoviesIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'moviesicon.png')
SearchIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'searchicon.png')
InfoIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'inficon.png')
SettingsIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media', 'settingsicon.png')

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
	addDir('TV Shows',tvShowsUrl,4,TVshowsIcon)
	addDir('Movies',moviesUrl,10,MoviesIcon)
Esempio n. 5
0
import sys, os, re
import urllib, urllib2
import xbmcplugin, xbmcgui
import plugin, db
from resources.lib.BeautifulSoup import BeautifulSoup
from resources.lib.ga import track

siteUrl = 'http://www.990.ro/'
searchUrl = 'http://www.990.ro/functions/search3/live_search_using_jquery_ajax/search.php'
tvShowsUrl = 'http://www.990.ro/seriale-lista.html'
moviesUrl = 'http://www.990.ro/toate-filmele.php'

USER_AGENT = 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36'
ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'

TVshowsIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media',
                           'tvshowsicon.png')
MoviesIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media',
                          'moviesicon.png')
SearchIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media',
                          'searchicon.png')
InfoIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media',
                        'inficon.png')
SettingsIcon = os.path.join(plugin.getPluginPath(), 'resources', 'media',
                            'settingsicon.png')

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())
Esempio n. 6
0
from resources.lib.BeautifulSoup import BeautifulSoup
from resources.lib.ga import track


siteUrl = "http://www.990.ro/"
searchUrl = "http://www.990.ro/functions/search3/live_search_using_jquery_ajax/search.php"
tvShowsUrl = "http://www.990.ro/seriale-lista.html"
moviesUrl = "http://www.990.ro/toate-filmele.php"

USER_AGENT = (
    "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
)
ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"


TVshowsIcon = os.path.join(plugin.getPluginPath(), "resources", "media", "tvshowsicon.png")
MoviesIcon = os.path.join(plugin.getPluginPath(), "resources", "media", "moviesicon.png")
SearchIcon = os.path.join(plugin.getPluginPath(), "resources", "media", "searchicon.png")
InfoIcon = os.path.join(plugin.getPluginPath(), "resources", "media", "inficon.png")
SettingsIcon = os.path.join(plugin.getPluginPath(), "resources", "media", "settingsicon.png")

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
    addDir("TV Shows", tvShowsUrl, 4, TVshowsIcon)
    addDir("Movies", moviesUrl, 10, MoviesIcon)