1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 22:25:19 +00:00

[ExtractAudio] Rescale --audio-quality correctly

Authored by: CrypticSignal, pukkandan
This commit is contained in:
pukkandan
2021-11-04 00:05:53 +05:30
parent bd93fd5d45
commit 31c49255bf
4 changed files with 28 additions and 17 deletions

View File

@@ -3871,7 +3871,7 @@ def int_or_none(v, scale=1, default=None, get_attr=None, invscale=1):
return default
try:
return int(v) * invscale // scale
except (ValueError, TypeError):
except (ValueError, TypeError, OverflowError):
return default