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:
parent
928f25c4c3
commit
e8a9157f20
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user