forked from MarseyWorld/MarseyWorld
fix 500 error
parent
d22b98a961
commit
38e836f804
|
@ -350,7 +350,7 @@ def handle_youtube_links(url):
|
||||||
if isinstance(t, str):
|
if isinstance(t, str):
|
||||||
t = t.replace('s','').replace('S','')
|
t = t.replace('s','').replace('S','')
|
||||||
split = t.split('m')
|
split = t.split('m')
|
||||||
if len(split) == 2:
|
if len(split) == 2 and split[1]:
|
||||||
minutes = int(split[0])
|
minutes = int(split[0])
|
||||||
seconds = int(split[1])
|
seconds = int(split[1])
|
||||||
t = minutes*60 + seconds
|
t = minutes*60 + seconds
|
||||||
|
|
Loading…
Reference in New Issue