get_watch_playlist: unwrap missing tracks
This commit is contained in:
parent
81afbe118c
commit
84af92a442
1 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ from .songs import *
|
|||
def parse_watch_playlist(results):
|
||||
tracks = []
|
||||
for result in results:
|
||||
if 'playlistPanelVideoWrapperRenderer' in result:
|
||||
result = result['playlistPanelVideoWrapperRenderer']['primaryRenderer']
|
||||
if 'playlistPanelVideoRenderer' not in result:
|
||||
continue
|
||||
data = result['playlistPanelVideoRenderer']
|
||||
|
|
|
|||
Loading…
Reference in a new issue