1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

Simplify further

This commit is contained in:
sepro 2025-03-02 13:51:37 +01:00
parent e639a88cbe
commit 28ad013cf2

View file

@ -543,7 +543,7 @@ def _real_extract(self, url):
'uploader': ('md_author', {str}), 'uploader': ('md_author', {str}),
'uploader_id': (('author_id', 'authorId'), {str_or_none}, any), 'uploader_id': (('author_id', 'authorId'), {str_or_none}, any),
'duration': ('duration', {int_or_none}), 'duration': ('duration', {int_or_none}),
'chapters': ('time_codes', lambda _, v: isinstance(v.get('time'), int), { 'chapters': ('time_codes', lambda _, v: isinstance(v['time'], int), {
'title': ('text', {str}), 'title': ('text', {str}),
'start_time': 'time', 'start_time': 'time',
}), }),