mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-21 20:15:36 +08:00
Strip spaces used as numeric separators by some locales (e.g. fr, uk).
This commit is contained in:
parent
d332ec725d
commit
66bfdcea6d
@ -3532,7 +3532,7 @@ def str_to_int(int_str):
|
||||
if isinstance(int_str, compat_integer_types):
|
||||
return int_str
|
||||
elif isinstance(int_str, compat_str):
|
||||
int_str = re.sub(r'[,\.\+]', '', int_str)
|
||||
int_str = re.sub(r'[,\.\s\+]', '', int_str)
|
||||
return int_or_none(int_str)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user