Feature: remove_history_items (closes #31)
This commit is contained in:
parent
3984341b15
commit
dad63116df
4 changed files with 31 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue