diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-12-31 18:06:31 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-12-31 18:06:31 -0800 |
commit | 113c75801a763a11bd4da76b62b00b3a129c1050 (patch) | |
tree | 3978123161a8c2e03f482531edc47577451012b1 | |
parent | 506dbb552a97ec4cc70538fc8e13ef9bfa901a4c (diff) | |
download | yt-local-113c75801a763a11bd4da76b62b00b3a129c1050.tar.lz yt-local-113c75801a763a11bd4da76b62b00b3a129c1050.tar.xz yt-local-113c75801a763a11bd4da76b62b00b3a129c1050.zip |
Fix playlist id extraction for radio renderers
-rw-r--r-- | youtube/yt_data_extract/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/common.py b/youtube/yt_data_extract/common.py index dfccdd1..877444e 100644 --- a/youtube/yt_data_extract/common.py +++ b/youtube/yt_data_extract/common.py @@ -268,7 +268,7 @@ def extract_item_info(item, additional_info={}): info['approx_view_count'] = '0' info['duration'] = extract_str(item.get('lengthText')) - elif primary_type == 'playlist': + elif primary_type in ('playlist', 'radio'): info['id'] = item.get('playlistId') info['video_count'] = extract_int(item.get('videoCount')) elif primary_type == 'channel': |