コード例 #1
0
    menu_number = 7
    print showtitle
except:
    pass

# Open directories based on selection
if menu_number == None:
        mainMenu()
       
elif menu_number == 1:
        import resources.lib.shows as shows
        shows.menu()
        
elif menu_number == 2:
        import resources.lib.upcoming as upcoming
        upcoming.menu()
        
elif menu_number == 3:
        import resources.lib.history as history
        history.menu()

elif menu_number == 4:
        import resources.lib.seasons as seasons
        seasons.menu(url, name)

elif menu_number == 5:
        import resources.lib.episodes as episodes
        episodes.menu(url, name, number)

elif menu_number == 6:
        import resources.lib.showinfo as showinfo
コード例 #2
0
    print episode
except:
    pass

# Open directories based on selection.
if menu_number == None:
    mainMenu()
       
elif menu_number == 1:  # Show list type [All, Continuing, Ended, Paused].
    show_filter.menu(sys.argv[1])
        
elif menu_number == 14: # Shows list.
    shows.menu(handle=sys.argv[1], filter=name)
        
elif menu_number == 2:  # Upcoming 1 Week.
    upcoming.menu(sys.argv[1], False)
        
elif menu_number == 22:   # Upcoming Extended.
    upcoming.menu(sys.argv[1], True)
        
elif menu_number == 3:  # History list.
    history.menu(sys.argv[1])

elif menu_number == 4:  # Seasons.
    seasons.menu(sys.argv[1], tvdb_id, show_name)

elif menu_number == 5:  # Episodes.
    episodes.menu(sys.argv[1], tvdb_id, show_name, number)

elif menu_number == 6:  # Open the video dialog window.
    xbmc.executebuiltin('XBMC.Action(Info)')
コード例 #3
0
    print episode
except:
    pass

# Open directories based on selection.
if menu_number == None:
    mainMenu()

elif menu_number == 1:  # Show list type [All, Continuing, Ended, Paused].
    show_filter.menu()

elif menu_number == 14:  # Shows list.
    shows.menu(filter=name)

elif menu_number == 2:  # Upcoming 1 Week.
    upcoming.menu(False)

elif menu_number == 22:  # Upcoming Extended.
    upcoming.menu(True)

elif menu_number == 3:  # History list.
    history.menu()

elif menu_number == 4:  # Seasons.
    seasons.menu(tvdb_id, show_name)

elif menu_number == 5:  # Episodes.
    episodes.menu(tvdb_id, show_name, number)

elif menu_number == 6:  # Open the video dialog window.
    xbmc.executebuiltin('XBMC.Action(Info)')
コード例 #4
0
ファイル: addon.py プロジェクト: fastcolors/KODI-SickRage
import resources.lib.util as util

try:
    if 'vf' in util.pluginArgs:
        vf = util.pluginArgs['vf']
        if vf == 'shows':
            import resources.lib.shows as shows
            shows.menu()
        elif vf == 'upcoming':
            import resources.lib.upcoming as upcoming
            upcoming.menu()
        elif vf == 'history':
            import resources.lib.history as history
            history.menu()
        elif vf == 'backlog':
            import resources.lib.backlog as backlog
            backlog.menu()
        elif vf == 'failed':
            import resources.lib.failed as failed
            failed.menu()
        elif vf == 'seasons':
            import resources.lib.seasons as seasons
            seasons.menu()
        elif vf == 'episodes':
            import resources.lib.episodes as episodes
            episodes.menu()
        else:
            util.log('invalid folder "' + vf + '"')
            import resources.lib.main as main
            main.menu()
    elif 'title' in util.pluginArgs:
コード例 #5
0
        shows.menu()
    if ret == 1:
        shows.menu('Continuing')
    if ret == 2:
        shows.menu('Ended')
    if ret == 3:
        shows.menu('Paused')
        
elif menu_number == 2:
    import resources.lib.upcoming as upcoming
    dialog = xbmcgui.Dialog()
    ret = dialog.select('Upcoming Episodes', ['1 Week', 'Extended'])
    if ret == -1:
        mainMenu()
    if ret == 0:
        upcoming.menu()
    if ret == 1:
        upcoming.menu(True)
        
elif menu_number == 3:
    import resources.lib.history as history
    history.menu()

elif menu_number == 4:
    import resources.lib.seasons as seasons
    seasons.menu(tvdb_id, show_name)

elif menu_number == 5:
    import resources.lib.episodes as episodes
    episodes.menu(tvdb_id, show_name, number)