mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[youtube] Clarify rationale for yt:stretch validation
This commit is contained in:
parent
13a9b69b09
commit
5faf9fed7e
@ -1514,6 +1514,8 @@ def _map_to_format_list(urlmap):
|
||||
if stretched_m:
|
||||
w = float(stretched_m.group('w'))
|
||||
h = float(stretched_m.group('h'))
|
||||
# yt:stretch may hold invalid ratio data (e.g. for Q39EVAstoRM ratio is 17:0).
|
||||
# We will only process correct ratios.
|
||||
if w > 0 and h > 0:
|
||||
ratio = w / h
|
||||
for f in formats:
|
||||
|
Loading…
Reference in New Issue
Block a user