def addTvShowsCategories(paramDict): ''' This methods create the list of shows video categories ''' # LinkDemand is an URL that contains category list of the specific tv show url = paramDict['linkDemand'] categoryList = request.showVideoCategories(url) #Add the list of categories for the chosen show for elem in categoryList: xbmcWrapper.addFolder(pluginId,3,elem[1],{'title': paramDict['title'], 'categoryName': elem[1], 'contentSet-Id': elem[0], 'page': str(0)}) xbmcWrapper.endOfContent(pluginId)
def addTvShowsCategories(paramDict): ''' This methods create the list of shows video categories ''' # LinkDemand is an URL that passed as a parameter form the command line and had been escaped so need to be recovered url = urllib.unquote_plus(paramDict['linkDemand']) categoryList = request.showVideoCategories(url) #Add the list of categories for the chosen show for elem in categoryList: xbmcWrapper.addFolder(pluginId,3,elem[1],{'title': paramDict['title'], 'categoryName': elem[1], 'contentSet-Id': elem[0], 'page': str(0)}) xbmcWrapper.endOfContent(pluginId)
def addTvShowsCategories(paramDict): ''' This methods create the list of shows video categories ''' # LinkDemand is an URL that contains category list of the specific tv show url = paramDict['linkDemand'] categoryList = request.showVideoCategories(url) #Add the list of categories for the chosen show for elem in categoryList: xbmcWrapper.addFolder( pluginId, 3, elem[1], { 'title': paramDict['title'], 'categoryName': elem[1], 'contentSet-Id': elem[0], 'page': str(0) }) xbmcWrapper.endOfContent(pluginId)