1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

minor fixes

This commit is contained in:
sepro 2024-06-30 03:38:41 +02:00
parent f32100e3aa
commit dd7b5adfb0

View File

@ -105,7 +105,7 @@ def _real_extract(self, url):
'title': ('title', {str}), 'title': ('title', {str}),
'id': ('id', {int}, {str_or_none}), 'id': ('id', {int}, {str_or_none}),
'description': ('body', {clean_html}), 'description': ('body', {clean_html}),
'thumbnail': (('large_thumbnail', 'thumbnail'), any, {url_or_none}), 'thumbnail': (('large_thumbnail', 'thumbnail'), {url_or_none}, any),
'duration': ('runTime', {parse_duration}), 'duration': ('runTime', {parse_duration}),
'categories': ('taxonomy', 'name', {str}, {lambda x: x and [x]}), 'categories': ('taxonomy', 'name', {str}, {lambda x: x and [x]}),
'tags': ('topics', ..., 'name', {str}), 'tags': ('topics', ..., 'name', {str}),
@ -114,4 +114,4 @@ def _real_extract(self, url):
} }
return self.playlist_result(traverse_obj( return self.playlist_result(traverse_obj(
series, ('chapters', ..., 'episodes', ..., {self.parse_episode})), **metadata) series, ('chapters', ..., 'episodes', lambda _, v: v['vimeoId'], {self.parse_episode})), **metadata)