Update duration regex to work for long videos (#164)

This commit is contained in:
sigma67 2021-02-01 14:21:39 +01:00
commit 25d538930f
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -36,7 +36,7 @@ def parse_song_runs(runs):
if text.endswith(' views'):
parsed['views'] = text.split(' ')[0]
elif re.match(r"^\d+:\d+$", text):
elif re.match(r"^(\d+:)*\d+:\d+$", text):
parsed['duration'] = text
elif re.match(r"^\d{4}$", text):