Exemplo n.º 1
0
    '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'])

    xbmcplugin.endOfDirectory(int(sys.argv[1]))


def categories(url):
Exemplo n.º 2
0
	'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'])
	#addDir('Setari', URL['base'], 98, ICON['settings'])
	#addDir('Golire Cache', URL['base'], 99)
	
	xbmcplugin.endOfDirectory(int(sys.argv[1]))