From 113c75801a763a11bd4da76b62b00b3a129c1050 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 31 Dec 2019 18:06:31 -0800 Subject: Fix playlist id extraction for radio renderers --- youtube/yt_data_extract/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube') 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': -- cgit v1.2.3