def tv_play(id, season, episode, usedefault='True'): playaction = plugin.get_setting('tvshows_default_action', int) if playaction == 1 and xbmc.getCondVisibility('system.hasaddon(script.extendedinfo)') and not plugin.getProperty('infodialogs.active'): from resources.lib.play_base import action_cancel action_cancel() xbmc.executebuiltin('RunScript(script.extendedinfo,info=extendedtvinfo,tvdb_id=%s)' % (id)) elif playaction == 2 and xbmc.getCondVisibility('system.hasaddon(script.extendedinfo)') and not plugin.getProperty('infodialogs.active'): from resources.lib.play_base import action_cancel action_cancel() xbmc.executebuiltin('RunScript(script.extendedinfo,info=extendedepisodeinfo,tvdb_id=%s,season=%s,episode=%s)' % (id, season, episode)) else: play_tvshows.play_episode(id, season, episode, usedefault)
def tv_play_choose_player(id, season, episode, usedefault): play_tvshows.play_episode(id, season, episode, usedefault)
def tv_play(id, season, episode): play_tvshows.play_episode(id, season, episode)