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):
|
def parse_watch_playlist(results):
|
||||||
tracks = []
|
tracks = []
|
||||||
for result in results:
|
for result in results:
|
||||||
|
if 'playlistPanelVideoWrapperRenderer' in result:
|
||||||
|
result = result['playlistPanelVideoWrapperRenderer']['primaryRenderer']
|
||||||
if 'playlistPanelVideoRenderer' not in result:
|
if 'playlistPanelVideoRenderer' not in result:
|
||||||
continue
|
continue
|
||||||
data = result['playlistPanelVideoRenderer']
|
data = result['playlistPanelVideoRenderer']
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue