def list_main_menu(): items = [{ 'label': 'Channels', 'path': plugin.url_for('list_all_channels'), 'thumbnail': imagePath(plugin, 'art', 'channels.png') }, { 'label': 'Search...', 'path': plugin.url_for('search'), 'thumbnail': imagePath(plugin, 'art', 'search.png') }, { 'label': 'Most Popular', 'path': plugin.url_for('list_most_popular'), 'thumbnail': imagePath(plugin, 'art', 'most_popular.png') }, { 'label': 'Date released', 'path': plugin.url_for('list_by_date_released'), 'thumbnail': imagePath(plugin, 'art', 'date_released.png') } ] return items
def list_most_popular(): items = [{ 'label': 'Most Popular Episodes', 'path': plugin.url_for('list_most_watched', programType=MediaType.EPISODE), 'thumbnail': imagePath(plugin, 'art', 'episodes.png') }, { 'label': 'Most Popular Clips', 'path': plugin.url_for('list_most_watched', programType=MediaType.CLIP), 'thumbnail': imagePath(plugin, 'art', 'clips.png') }, ] return plugin.finish(items)
def list_episode_clip_choice(programID, episodeCount, clipsCount): items = [{ 'label': "Episodes ([COLOR blue]%s[/COLOR] episode%s)" % ( episodeCount, 's' if episodeCount > 1 else ''), 'path': plugin.url_for('list_media_items', programID=programID, mediaType=MediaType.EPISODE), 'thumbnail': imagePath(plugin, 'art', 'episodes.png') }, { 'label': "Clips ([COLOR blue]%s[/COLOR] clip%s)" % (clipsCount, 's' if clipsCount > 1 else ''), 'path': plugin.url_for('list_media_items', programID=programID, mediaType=MediaType.CLIP), 'thumbnail': imagePath(plugin, 'art', 'clips.png') } ] return plugin.finish(items)
def list_by_date_released(): items = [{ 'label': 'Latest Episodes', 'path': plugin.url_for('list_media_items_latest', mediaType=MediaType.EPISODE), 'thumbnail': imagePath(plugin, 'art', 'episodes.png') }, { 'label': 'Latest Programs', 'path': plugin.url_for('list_channel_programs', channelID=' '), 'thumbnail': imagePath(plugin, 'art', 'programs.png') }, { 'label': 'Latest Clips', 'path': plugin.url_for('list_media_items_latest', mediaType=MediaType.CLIP), 'thumbnail': imagePath(plugin, 'art', 'clips.png') } ] return plugin.finish(items)
def list_most_popular(): items = [ { 'label': 'Most Popular Episodes', 'path': plugin.url_for('list_most_watched', programType=MediaType.EPISODE), 'thumbnail': imagePath(plugin, 'art', 'episodes.png') }, { 'label': 'Most Popular Clips', 'path': plugin.url_for('list_most_watched', programType=MediaType.CLIP), 'thumbnail': imagePath(plugin, 'art', 'clips.png') }, ] return plugin.finish(items)
def list_main_menu(): items = [{ 'label': 'Channels', 'path': plugin.url_for('list_all_channels'), 'thumbnail': imagePath(plugin, 'art', 'channels.png') }, { 'label': 'Search...', 'path': plugin.url_for('search'), 'thumbnail': imagePath(plugin, 'art', 'search.png') }, { 'label': 'Most Popular', 'path': plugin.url_for('list_most_popular'), 'thumbnail': imagePath(plugin, 'art', 'most_popular.png') }, { 'label': 'Date released', 'path': plugin.url_for('list_by_date_released'), 'thumbnail': imagePath(plugin, 'art', 'date_released.png') }] return items
def list_by_date_released(): items = [{ 'label': 'Latest Episodes', 'path': plugin.url_for('list_media_items_latest', mediaType=MediaType.EPISODE), 'thumbnail': imagePath(plugin, 'art', 'episodes.png') }, { 'label': 'Latest Programs', 'path': plugin.url_for('list_channel_programs', channelID=' '), 'thumbnail': imagePath(plugin, 'art', 'programs.png') }, { 'label': 'Latest Clips', 'path': plugin.url_for('list_media_items_latest', mediaType=MediaType.CLIP), 'thumbnail': imagePath(plugin, 'art', 'clips.png') }] return plugin.finish(items)
def list_episode_clip_choice(programID, episodeCount, clipsCount): items = [{ 'label': "Episodes ([COLOR blue]%s[/COLOR] episode%s)" % (episodeCount, 's' if episodeCount > 1 else ''), 'path': plugin.url_for('list_media_items', programID=programID, mediaType=MediaType.EPISODE), 'thumbnail': imagePath(plugin, 'art', 'episodes.png') }, { 'label': "Clips ([COLOR blue]%s[/COLOR] clip%s)" % (clipsCount, 's' if clipsCount > 1 else ''), 'path': plugin.url_for('list_media_items', programID=programID, mediaType=MediaType.CLIP), 'thumbnail': imagePath(plugin, 'art', 'clips.png') }] return plugin.finish(items)