def get_topten(): keyword = 'Top 10 TWiST videos' content = thisweekscraper.get_latest(SITE_URL, keyword) items = [] for i in content: items.append({ 'label': i['label'], 'path': PLUGIN_URL + i['path'], 'thumbnail': i['thumbnail'], 'is_playable': True, }) return items
def get_highlight(): keyword = 'Highlight Clips' content = thisweekscraper.get_latest(SITE_URL, keyword) items = [] for i in content: items.append({ 'label': i['label'], 'path': PLUGIN_URL + i['path'], 'thumbnail': i['thumbnail'], 'is_playable': True, }) return items