示例#1
0
elif action == 'refresh':
    from resources.lib.modules import control
    control.refresh()

elif action == 'queueItem':
    from resources.lib.modules import control
    control.queueItem()

elif action == 'openSettings':
    from resources.lib.modules import control
    control.openSettings(query)

elif action == 'artwork':
    from resources.lib.modules import control
    control.artwork()

elif action == 'addView':
    from resources.lib.modules import views
    views.addView(content)

elif action == 'moviePlaycount':
    from resources.lib.modules import playcount
    playcount.movies(imdb, query)

elif action == 'episodePlaycount':
    from resources.lib.modules import playcount
    playcount.episodes(imdb, tvdb, season, episode, query)

elif action == 'tvPlaycount':
    from resources.lib.modules import playcount
示例#2
0
elif action == 'queueItem':
    from resources.lib.modules import control
    control.queueItem()

elif action == 'openPlaylist':
    from resources.lib.modules import control
    control.openPlaylist()

elif action == 'openSettings':
    from resources.lib.modules import control
    control.openSettings(query)

elif action == 'artwork':
    from resources.lib.modules import control
    control.artwork()

elif action == 'moviePlaycount':
    from resources.lib.modules import playcount
    playcount.movies(imdb, query)

elif action == 'episodePlaycount':
    from resources.lib.modules import playcount
    playcount.episodes(imdb, tvdb, season, episode, query)

elif action == 'tvPlaycount':
    from resources.lib.modules import playcount
    playcount.tvshows(name, imdb, tvdb, season, query)

elif action == 'trailer':
    from resources.lib.modules import trailer
示例#3
0
season = params.get('season')
select = params.get('select')
source = params.get('source')
title = params.get('title')
tmdb = params.get('tmdb')
tvdb = params.get('tvdb')
tvshowtitle = params.get('tvshowtitle')
url = params.get('url')
year = params.get('year')

if action == None: navigator.navigator().root()
elif action == 'addFavourite': favourites.addFavourite(meta, content)
elif action == 'addItem': sources().addItem(title)
elif action == 'addView': views.addView(content)
elif action == 'alterSources': sources().alterSources(url, meta)
elif action == 'artwork': control.artwork()
elif action == 'authTrakt': trakt.authTrakt()
elif action == 'backupwatchlist':
    fn = os.path.join(datapath, 'favourites.db')
    if os.path.exists(fn):
        backupdir = control.setting('remote_path')
        if not backupdir == '':
            to_backup = xbmc.translatePath(
                os.path.join('special://', 'profile/addon_data/'))
            rootlen = len(datapath)
            backup_ui_zip = xbmc.translatePath(
                os.path.join(backupdir, 'uranus_watchlist.zip'))
            zipobj = zipfile.ZipFile(backup_ui_zip, 'w', zipfile.ZIP_DEFLATED)
            zipobj.write(fn, fn[rootlen:])
            dialog.ok('Backup Watchlist', 'Backup complete', '', '')
        else: