Compare commits

..

2 Commits

Author SHA1 Message Date
bashonly
facfbad783
[ie/soop] Fix thumbnail extraction
Authored by: bashonly
2024-11-14 16:09:11 -06:00
bashonly
d1b0098604
[ie] Allow ext override for thumbnails
Authored by: bashonly
2024-11-14 16:08:50 -06:00

View File

@ -234,7 +234,8 @@ class AfreecaTVCatchStoryIE(AfreecaTVBaseIE):
return self.playlist_result(self._entries(data), video_id) return self.playlist_result(self._entries(data), video_id)
def _entries(self, data): @staticmethod
def _entries(data):
# 'files' is always a list with 1 element # 'files' is always a list with 1 element
yield from traverse_obj(data, ( yield from traverse_obj(data, (
'data', lambda _, v: v['story_type'] == 'catch', 'data', lambda _, v: v['story_type'] == 'catch',
@ -245,7 +246,7 @@ class AfreecaTVCatchStoryIE(AfreecaTVBaseIE):
'title': ('title', {str}), 'title': ('title', {str}),
'uploader': ('writer_nick', {str}), 'uploader': ('writer_nick', {str}),
'uploader_id': ('writer_id', {str}), 'uploader_id': ('writer_id', {str}),
'thumbnails': ('thumb', {self._fixup_thumb}), 'thumbnails': ('thumb', {AfreecaTVBaseIE._fixup_thumb}),
'timestamp': ('write_timestamp', {int_or_none}), 'timestamp': ('write_timestamp', {int_or_none}),
})) }))