Example #1
0
def handle_request():
#    generic_utility.log('mode: '+mode)
    if mode == 'main':
        general.main(video_type)
    elif mode == 'list_videos':
        list.videos(url, video_type, page, run_as_widget)
    elif mode == 'list_seasons':
        list.seasons(name, url, thumb)
    elif mode == 'list_episodes':
        list.episodes(series_id, url)
    elif mode == 'list_genres':
        list.genres(video_type)
    elif mode == 'list_viewing_activity':
        list.viewing_activity(video_type, run_as_widget)
    elif mode == 'add_to_queue':
        queue.add(url)
    elif mode == 'remove_from_queue':
        queue.remove(url)
    elif mode == 'add_movie_to_library':
        library.add_movie(url, name)
    elif mode == 'remove_movie_from_library':
        library.remove_movie(name)
    elif mode == 'add_series_to_library':
        library.add_series(series_id, name, url)
    elif mode == 'remove_series_from_library':
        library.remove_series(name)
    elif mode == 'play_trailer':
        play.trailer(url, video_type)
    elif mode == 'choose_profile':
        profiles.choose()
        profiles.update_displayed()
    elif mode == 'search':
        search.netflix(video_type)
    elif mode == 'delete_cookies':
        delete.cookies()
    elif mode == 'delete_cache':
        delete.cache()
    elif mode == 'reset_addon':
        delete.addon()
    elif mode == 'play_video':
        #    utility.log('play_video: '+url)
        play.video(url, series_id);
    elif mode == 'play_video_main':
        #    utility.log('play_video_main: '+url)
        play.video(url, series_id);
    elif mode == 'relogin':
        login.login()
        profiles.update_displayed()
    else:
        general.index()
Example #2
0
elif mode == 'list_seasons':
    list.seasons(name, url, thumb)
elif mode == 'list_episodes':
    list.episodes(series_id, url)
elif mode == 'list_genres':
    list.genres(video_type)
elif mode == 'list_viewing_activity':
    list.view_activity(video_type, run_as_widget)
elif mode == 'add_to_queue':
    queue.add(url)
elif mode == 'remove_from_queue':
    queue.remove(url)
elif mode == 'add_movie_to_library':
    library.movie(url, name)
elif mode == 'add_series_to_library':
    library.series(series_id, name, url)
elif mode == 'play_trailer':
    play.trailer(url, video_type)
elif mode == 'update_displayed_profile':
    profiles.update_displayed()
elif mode == 'search':
    search.netflix(video_type)
elif mode == 'delete_cookies':
    delete.cookies()
elif mode == 'delete_cache':
    delete.cache()
elif mode == 'reset_addon':
    delete.addon()
else:
    general.index()
Example #3
0
elif mode == "list_seasons":
    list.seasons(name, url, thumb)
elif mode == "list_episodes":
    list.episodes(series_id, url)
elif mode == "list_genres":
    list.genres(video_type)
elif mode == "list_viewing_activity":
    list.view_activity(video_type, run_as_widget)
elif mode == "add_to_queue":
    queue.add(url)
elif mode == "remove_from_queue":
    queue.remove(url)
elif mode == "add_movie_to_library":
    library.movie(url, name)
elif mode == "add_series_to_library":
    library.series(series_id, name, url)
elif mode == "play_trailer":
    play.trailer(url, video_type)
elif mode == "update_displayed_profile":
    profiles.update_displayed()
elif mode == "search":
    search.netflix(video_type)
elif mode == "delete_cookies":
    delete.cookies()
elif mode == "delete_cache":
    delete.cache()
elif mode == "reset_addon":
    delete.addon()
else:
    general.index()