Feature: remove_history_items (closes #31)

This commit is contained in:
sigma67 2020-08-27 12:28:17 +02:00
commit dad63116df
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 31 additions and 3 deletions

View file

@ -1,7 +1,8 @@
from .utils import *
from typing import List
def parse_playlist_items(results):
def parse_playlist_items(results, menu_entries: List[List] = None):
songs = []
count = 1
for result in results:
@ -65,6 +66,10 @@ def parse_playlist_items(results):
if setVideoId:
song['setVideoId'] = setVideoId
if menu_entries:
for menu_entry in menu_entries:
song[menu_entry[-1]] = nav(data, MENU_ITEMS + menu_entry)
songs.append(song)
except Exception as e: