fix run parsing - artist mistaken as views (closes #313)
This commit is contained in:
parent
2965004ba0
commit
d48951f00f
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def parse_song_runs(runs):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# note: YT uses non-breaking space \xa0 to separate number and magnitude
|
# 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]
|
parsed['views'] = text.split(' ')[0]
|
||||||
|
|
||||||
elif re.match(r"^(\d+:)*\d+:\d+$", text):
|
elif re.match(r"^(\d+:)*\d+:\d+$", text):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue