def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type=='GENRE': mode = 'LIST_TVSHOWS_GENRE_FILTERED' items = tvDB.getShowTypes('genres') elif type=='NETWORKS': mode = 'LIST_TVSHOWS_NETWORKS_FILTERED' items = tvDB.getShowTypes('network') elif type=='YEARS': mode = 'LIST_TVSHOWS_YEARS_FILTERED' items = tvDB.getShowTypes('year') elif type=='MPAA': mode = 'LIST_TVSHOWS_MPAA_FILTERED' items = tvDB.getShowTypes('mpaa') elif type=='CREATORS': mode = 'LIST_TVSHOWS_CREATORS_FILTERED' items = tvDB.getShowTypes('creator') for item in items: export_mode=mode+'_EXPORT' cm = [('Export to Library', 'XBMC.RunPlugin(plugin://plugin.video.amazon?mode="listtv"&sitemode="%s"&url="%s")' % ( export_mode, urllib.quote_plus(item) ) ) ] common.addDir(item,'listtv',mode,item,cm=cm) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle,updateListing=False)
def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type == "GENRE": mode = "LIST_TVSHOWS_GENRE_FILTERED" items = tvDB.getShowTypes("genres") elif type == "NETWORKS": mode = "LIST_TVSHOWS_NETWORKS_FILTERED" items = tvDB.getShowTypes("network") elif type == "YEARS": mode = "LIST_TVSHOWS_YEARS_FILTERED" items = tvDB.getShowTypes("year") elif type == "MPAA": mode = "LIST_TVSHOWS_MPAA_FILTERED" items = tvDB.getShowTypes("mpaa") elif type == "CREATORS": mode = "LIST_TVSHOWS_CREATORS_FILTERED" items = tvDB.getShowTypes("creator") for item in items: export_mode = mode + "_EXPORT" cm = [ ( "Export to Library", 'XBMC.RunPlugin(plugin://plugin.video.amazon?mode="listtv"&sitemode="%s"&url="%s")' % (export_mode, urllib.quote_plus(item)), ) ] common.addDir(item, "listtv", mode, item, cm=cm) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle, updateListing=False)
def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type == 'GENRE': mode = 'LIST_TVSHOWS_GENRE_FILTERED' items = tvDB.getShowTypes('genres') elif type == 'NETWORKS': mode = 'LIST_TVSHOWS_NETWORKS_FILTERED' items = tvDB.getShowTypes('network') elif type == 'YEARS': mode = 'LIST_TVSHOWS_YEARS_FILTERED' items = tvDB.getShowTypes('year') elif type == 'MPAA': mode = 'LIST_TVSHOWS_MPAA_FILTERED' items = tvDB.getShowTypes('mpaa') elif type == 'CREATORS': mode = 'LIST_TVSHOWS_CREATORS_FILTERED' items = tvDB.getShowTypes('creator') for item in items: export_mode = mode + '_EXPORT' cm = [( 'Export to Library', 'XBMC.RunPlugin(plugin://plugin.video.amazon?mode="listtv"&sitemode="%s"&url="%s")' % (export_mode, urllib.quote_plus(item)))] common.addDir(item, 'listtv', mode, item, cm=cm) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle, updateListing=False)
def LIST_TVSHOWS_TYPES(tvtype=None): if not tvtype: tvtype = args.get('url') if tvtype: for item in tv.getShowTypes(tvtype): addDir(item, 'listtv', 'LIST_TVSHOWS_FILTERED', tvtype) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle, updateListing=False)
def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type: mode = 'LIST_TVSHOWS_FILTERED' items = tvDB.getShowTypes(type) for item in items: common.addDir(item,'listtv',mode,type) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle,updateListing=False)
def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type == 'GENRE': mode = 'LIST_TVSHOWS_GENRE_FILTERED' items = tvDB.getShowTypes('genres') elif type == 'NETWORKS': mode = 'LIST_TVSHOWS_NETWORKS_FILTERED' items = tvDB.getShowTypes('network') elif type == 'YEARS': mode = 'LIST_TVSHOWS_YEARS_FILTERED' items = tvDB.getShowTypes('year') elif type == 'CREATORS': mode = 'LIST_TVSHOWS_CREATORS_FILTERED' items = tvDB.getShowTypes('creator') for item in items: common.addDir(item, 'listtv', mode, item) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle, updateListing=False)
def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type: mode = 'LIST_TVSHOWS_FILTERED' items = tvDB.getShowTypes(type) for item in items: common.addDir(item, 'listtv', mode, type) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle, updateListing=False)
def LIST_TVSHOWS_TYPES(type=False): import tv as tvDB if not type: type = common.args.url if type=='GENRE': mode = 'LIST_TVSHOWS_GENRE_FILTERED' items = tvDB.getShowTypes('genres') elif type=='NETWORKS': mode = 'LIST_TVSHOWS_NETWORKS_FILTERED' items = tvDB.getShowTypes('network') elif type=='YEARS': mode = 'LIST_TVSHOWS_YEARS_FILTERED' items = tvDB.getShowTypes('year') elif type=='CREATORS': mode = 'LIST_TVSHOWS_CREATORS_FILTERED' items = tvDB.getShowTypes('creator') for item in items: common.addDir(item,'listtv',mode,item) xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) xbmcplugin.endOfDirectory(pluginhandle,updateListing=False)