From 836f8042568defd8f1530c0eba007a6fc37cc13b Mon Sep 17 00:00:00 2001 From: wagwan piffting <68403205+wagwan-piffting-blud@users.noreply.github.com> Date: Sun, 13 Sep 2020 00:21:54 -0500 Subject: [PATCH] Fix Kakao Extractor Kakao has changed their API to return `null` for `clipChapterThumbnailList`, this change comments out the thumbnail extractor to fix the issue. --- youtube_dl/extractor/kakao.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/youtube_dl/extractor/kakao.py b/youtube_dl/extractor/kakao.py index 32935bb28..5a5487dff 100644 --- a/youtube_dl/extractor/kakao.py +++ b/youtube_dl/extractor/kakao.py @@ -116,19 +116,19 @@ class KakaoIE(InfoExtractor): pass self._sort_formats(formats) - thumbs = [] - for thumb in clip.get('clipChapterThumbnailList', []): - thumbs.append({ - 'url': thumb.get('thumbnailUrl'), - 'id': compat_str(thumb.get('timeInSec')), - 'preference': -1 if thumb.get('isDefault') else 0 - }) - top_thumbnail = clip.get('thumbnailUrl') - if top_thumbnail: - thumbs.append({ - 'url': top_thumbnail, - 'preference': 10, - }) + # thumbs = [] + # for thumb in clip.get('clipChapterThumbnailList', []): + # thumbs.append({ + # 'url': thumb.get('thumbnailUrl'), + # 'id': compat_str(thumb.get('timeInSec')), + # 'preference': -1 if thumb.get('isDefault') else 0 + # }) + # top_thumbnail = clip.get('thumbnailUrl') + # if top_thumbnail: + # thumbs.append({ + # 'url': top_thumbnail, + # 'preference': 10, + # }) return { 'id': display_id, @@ -136,7 +136,7 @@ class KakaoIE(InfoExtractor): 'description': strip_or_none(clip.get('description')), 'uploader': clip_link.get('channel', {}).get('name'), 'uploader_id': clip_link.get('channelId'), - 'thumbnails': thumbs, + # 'thumbnails': thumbs, 'timestamp': unified_timestamp(clip_link.get('createTime')), 'duration': int_or_none(clip.get('duration')), 'view_count': int_or_none(clip.get('playCount')),