diff options
author | Lunatixz <128316+Lunatixz@users.noreply.github.com> | 2018-01-27 16:37:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-27 16:37:20 -0500 |
commit | df562079c5d2ca5f0c5db8b66cbb78c5d8527e30 (patch) | |
tree | 9f255223a20ed96bcf68c8523d9992efff124c03 /plugin.video.crackle/main.py | |
parent | 3467ee3e394f21e32d89ad06a5689772914d2412 (diff) | |
parent | c1d47845e3922d3dff065d1003e647442bacf473 (diff) |
Merge pull request #1633 from eracknaphobia/crackle
[plugin.video.crackle] 2018.1.27
Diffstat (limited to 'plugin.video.crackle/main.py')
-rw-r--r-- | plugin.video.crackle/main.py | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/plugin.video.crackle/main.py b/plugin.video.crackle/main.py index 27674bd..28be0aa 100644 --- a/plugin.video.crackle/main.py +++ b/plugin.video.crackle/main.py @@ -1,10 +1,10 @@ from resources.lib.globals import * -params=get_params() -media_id=None -name=None -mode=None -stream_type=None +params = get_params() +media_id = None +name = None +mode = None +stream_type = None try: media_id=urllib.unquote_plus(params["id"]) @@ -23,24 +23,21 @@ try: except: pass -if mode==None: - #test() - #or url==None or len(url)<1 - mainMenu() -elif mode==100: - listShows() - -elif mode==101: - listMovies() - -elif mode==102: - getEpisodes(media_id) - -elif mode==103: - if stream_type == "movies": media_id = getMovieID(media_id) - getStream(media_id) - -elif mode==999: - deauthorize() +if mode is None: + main_menu() + +elif mode == 100: + list_shows() + +elif mode == 101: + list_movies() + +elif mode == 102: + get_episodes(media_id) + +elif mode == 103: + if stream_type == "movies": media_id = get_movie_id(media_id) + get_stream(media_id) + xbmcplugin.endOfDirectory(addon_handle)
\ No newline at end of file |