mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-01-10 07:07:55 +01:00
[AnimeLab] Fix height extraction
This commit is contained in:
parent
282c7a1af4
commit
066f0442f1
@ -159,10 +159,12 @@ class AnimeLabIE(AnimeLabBaseIE):
|
|||||||
else:
|
else:
|
||||||
quality = None
|
quality = None
|
||||||
|
|
||||||
if quality:
|
|
||||||
height = int_or_none(self._search_regex(r'(\d+)p?$', quality, 'Video format height', default=None, fatal=False))
|
|
||||||
else:
|
|
||||||
height = None
|
height = None
|
||||||
|
if quality:
|
||||||
|
height = int_or_none(self._search_regex(r'(\d+)p?$', quality, 'Video format height', default=None))
|
||||||
|
if height is None and quality.startswith('SD'):
|
||||||
|
# sometimes we are only told it's SD quality
|
||||||
|
height = 480
|
||||||
|
|
||||||
if height is None:
|
if height is None:
|
||||||
self.report_warning('Could not get height of video')
|
self.report_warning('Could not get height of video')
|
||||||
|
Loading…
Reference in New Issue
Block a user