From 545d78840b28f638c3d4f115b709c0cef8fa0e09 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 4 Sep 2013 14:59:52 +0200 Subject: [PATCH] qbrick: support for automagic detect live videos. --- lib/svtplay_dl/service/qbrick.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/qbrick.py b/lib/svtplay_dl/service/qbrick.py index ff5d43b..9ab2e76 100644 --- a/lib/svtplay_dl/service/qbrick.py +++ b/lib/svtplay_dl/service/qbrick.py @@ -66,7 +66,9 @@ class Qbrick(Service): except AttributeError: log.error("Can't find video file") sys.exit(2) - + live = xml.find("media").find("item").find("playlist").find("stream").attrib["isLive"] + if live == "true": + options.live = True data = get_http_data(url) xml = ET.XML(data) server = xml.find("head").find("meta").attrib["base"]