Fix playlist id extraction for radio renderers
This commit is contained in:
parent
506dbb552a
commit
113c75801a
@ -268,7 +268,7 @@ def extract_item_info(item, additional_info={}):
|
|||||||
info['approx_view_count'] = '0'
|
info['approx_view_count'] = '0'
|
||||||
|
|
||||||
info['duration'] = extract_str(item.get('lengthText'))
|
info['duration'] = extract_str(item.get('lengthText'))
|
||||||
elif primary_type == 'playlist':
|
elif primary_type in ('playlist', 'radio'):
|
||||||
info['id'] = item.get('playlistId')
|
info['id'] = item.get('playlistId')
|
||||||
info['video_count'] = extract_int(item.get('videoCount'))
|
info['video_count'] = extract_int(item.get('videoCount'))
|
||||||
elif primary_type == 'channel':
|
elif primary_type == 'channel':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user