From d48951f00fc2d66192181a38ee1c344e770cf65d Mon Sep 17 00:00:00 2001 From: sigma67 Date: Thu, 3 Nov 2022 17:17:19 +0100 Subject: [PATCH] fix run parsing - artist mistaken as views (closes #313) --- ytmusicapi/parsers/songs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/parsers/songs.py b/ytmusicapi/parsers/songs.py index a8cfc15..f679bbe 100644 --- a/ytmusicapi/parsers/songs.py +++ b/ytmusicapi/parsers/songs.py @@ -38,7 +38,7 @@ def parse_song_runs(runs): else: # note: YT uses non-breaking space \xa0 to separate number and magnitude - if re.match(r"^\d([^ ])* [^ ]*$", text): + if re.match(r"^\d([^ ])* [^ ]*$", text) and i > 0: parsed['views'] = text.split(' ')[0] elif re.match(r"^(\d+:)*\d+:\d+$", text):