return videoType on playlist items
This commit is contained in:
parent
a406dbcf95
commit
4221cb9c1e
2 changed files with 5 additions and 1 deletions
|
|
@ -88,6 +88,7 @@ class PlaylistsMixin:
|
||||||
"thumbnails": [...],
|
"thumbnails": [...],
|
||||||
"isAvailable": True,
|
"isAvailable": True,
|
||||||
"isExplicit": False,
|
"isExplicit": False,
|
||||||
|
"videoType": "MUSIC_VIDEO_TYPE_OMV",
|
||||||
"feedbackTokens": {
|
"feedbackTokens": {
|
||||||
"add": "AB9zfpJxtvrU...",
|
"add": "AB9zfpJxtvrU...",
|
||||||
"remove": "AB9zfpKTyZ..."
|
"remove": "AB9zfpKTyZ..."
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ def parse_playlist_items(results, menu_entries: List[List] = None):
|
||||||
|
|
||||||
isExplicit = nav(data, BADGE_LABEL, True) is not None
|
isExplicit = nav(data, BADGE_LABEL, True) is not None
|
||||||
|
|
||||||
|
videoType = nav(data, MENU_ITEMS + [0, 'menuNavigationItemRenderer', 'navigationEndpoint'] + NAVIGATION_VIDEO_TYPE, True)
|
||||||
|
|
||||||
song = {
|
song = {
|
||||||
'videoId': videoId,
|
'videoId': videoId,
|
||||||
'title': title,
|
'title': title,
|
||||||
|
|
@ -74,7 +76,8 @@ def parse_playlist_items(results, menu_entries: List[List] = None):
|
||||||
'likeStatus': like,
|
'likeStatus': like,
|
||||||
'thumbnails': thumbnails,
|
'thumbnails': thumbnails,
|
||||||
'isAvailable': isAvailable,
|
'isAvailable': isAvailable,
|
||||||
'isExplicit': isExplicit
|
'isExplicit': isExplicit,
|
||||||
|
'videoType': videoType
|
||||||
}
|
}
|
||||||
if duration:
|
if duration:
|
||||||
song['duration'] = duration
|
song['duration'] = duration
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue