From e1c77f1da09b102e2be6e4e556e32bc2279be502 Mon Sep 17 00:00:00 2001 From: HHongSeungWoo Date: Fri, 4 Mar 2022 18:27:16 +0900 Subject: [PATCH] fix/number parse error --- ytmusicapi/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/helpers.py b/ytmusicapi/helpers.py index 128b2bf..ac6c015 100644 --- a/ytmusicapi/helpers.py +++ b/ytmusicapi/helpers.py @@ -96,7 +96,7 @@ def get_datestamp(): def to_int(string): - number_string = re.split('[\x20\xa0]', string)[0] + number_string = re.sub('[^\\d]', '', string) try: int_value = locale.atoi(number_string) except ValueError: