mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 19:52:40 +01:00
[vidio] Make duration non fatal and fix typo
This commit is contained in:
parent
e0f1fb0a27
commit
935d6c20c0
@ -56,7 +56,8 @@ def _real_extract(self, url):
|
|||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
duration = int_or_none(duration or self._search_regex(
|
duration = int_or_none(duration or self._search_regex(
|
||||||
r'data-video-duration=(["\'])(?P<duartion>\d+)\1', webpage, 'duration'))
|
r'data-video-duration=(["\'])(?P<duration>\d+)\1', webpage,
|
||||||
|
'duration', fatal=False, group='duration'))
|
||||||
thumbnail = thumbnail or self._og_search_thumbnail(webpage)
|
thumbnail = thumbnail or self._og_search_thumbnail(webpage)
|
||||||
|
|
||||||
like_count = int_or_none(self._search_regex(
|
like_count = int_or_none(self._search_regex(
|
||||||
|
Loading…
Reference in New Issue
Block a user