Update duration regex to work for long videos (#164)
This commit is contained in:
parent
5cbbf73c50
commit
25d538930f
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ def parse_song_runs(runs):
|
||||||
if text.endswith(' views'):
|
if text.endswith(' views'):
|
||||||
parsed['views'] = text.split(' ')[0]
|
parsed['views'] = text.split(' ')[0]
|
||||||
|
|
||||||
elif re.match(r"^\d+:\d+$", text):
|
elif re.match(r"^(\d+:)*\d+:\d+$", text):
|
||||||
parsed['duration'] = text
|
parsed['duration'] = text
|
||||||
|
|
||||||
elif re.match(r"^\d{4}$", text):
|
elif re.match(r"^\d{4}$", text):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue