1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

parsem3u: don't crash if we cant unpack extinf

fixes: #557
This commit is contained in:
Johan Andersson 2017-02-12 08:53:59 +01:00
parent 9cfb4e5f1e
commit d20fa3d959

View File

@ -145,7 +145,11 @@ def parsem3u(data):
line[0].append("None")
globdata.update(dict(line))
elif l.startswith("#EXTINF:"):
dur, title = l[8:].strip().split(",", 1)
try:
dur, title = l[8:].strip().split(",", 1)
except:
dur = l[8:].strip()
title = None
streaminfo['duration'] = dur
streaminfo['title'] = title
elif l[0] == '#':