aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-12-31 18:06:31 -0800
committerJames Taylor <user234683@users.noreply.github.com>2019-12-31 18:06:31 -0800
commit113c75801a763a11bd4da76b62b00b3a129c1050 (patch)
tree3978123161a8c2e03f482531edc47577451012b1 /youtube/yt_data_extract
parent506dbb552a97ec4cc70538fc8e13ef9bfa901a4c (diff)
downloadyt-local-113c75801a763a11bd4da76b62b00b3a129c1050.tar.lz
yt-local-113c75801a763a11bd4da76b62b00b3a129c1050.tar.xz
yt-local-113c75801a763a11bd4da76b62b00b3a129c1050.zip
Fix playlist id extraction for radio renderers
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r--youtube/yt_data_extract/common.py2
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':