From 8e5c7ddd30a7b7268ec4d8789d4b5cff18bd121d Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 17 Sep 2017 21:03:10 +0200 Subject: [PATCH] dash: fix a warning --- lib/svtplay_dl/fetcher/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/fetcher/dash.py b/lib/svtplay_dl/fetcher/dash.py index 4edccc7..8f5e840 100644 --- a/lib/svtplay_dl/fetcher/dash.py +++ b/lib/svtplay_dl/fetcher/dash.py @@ -95,7 +95,7 @@ def adaptionset(element, url, baseurl=None): if i.find("{urn:mpeg:dash:schema:mpd:2011}SegmentBase") is not None: files.append(filename) - if template: + if template is not None: segments = True files = templateelemt(template, filename, idnumber) elif i.find("{urn:mpeg:dash:schema:mpd:2011}SegmentTemplate"):