From 2aad7232f2f038bbcad203df4e8292be9e16d36f Mon Sep 17 00:00:00 2001 From: sigma67 Date: Mon, 20 Dec 2021 10:11:51 +0100 Subject: [PATCH] also split on non-breaking spaces --- ytmusicapi/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/helpers.py b/ytmusicapi/helpers.py index b58bcf6..f3b139b 100644 --- a/ytmusicapi/helpers.py +++ b/ytmusicapi/helpers.py @@ -96,7 +96,7 @@ def get_datestamp(): def to_int(string): - number_string = string.split(' ')[0] + number_string = re.split('[\x20\xa0]', string)[0] try: int_value = locale.atoi(number_string) except ValueError: