1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

add check 'is not None' to avoid FutureWarning

This commit is contained in:
dalgr 2017-09-19 21:18:13 +02:00 committed by Johan Andersson
parent 928f25c4c3
commit e8a9157f20

View File

@ -98,7 +98,7 @@ def adaptionset(element, url, baseurl=None):
if template is not None:
segments = True
files = templateelemt(template, filename, idnumber)
elif i.find("{urn:mpeg:dash:schema:mpd:2011}SegmentTemplate"):
elif i.find("{urn:mpeg:dash:schema:mpd:2011}SegmentTemplate") is not None:
segments = True
files = templateelemt(i.find("{urn:mpeg:dash:schema:mpd:2011}SegmentTemplate"), filename, idnumber)