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

qbrick: support for automagic detect live videos.

This commit is contained in:
Johan Andersson 2013-09-04 14:59:52 +02:00
parent 90f26988ac
commit 545d78840b

View File

@ -66,7 +66,9 @@ class Qbrick(Service):
except AttributeError: except AttributeError:
log.error("Can't find video file") log.error("Can't find video file")
sys.exit(2) 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) data = get_http_data(url)
xml = ET.XML(data) xml = ET.XML(data)
server = xml.find("head").find("meta").attrib["base"] server = xml.find("head").find("meta").attrib["base"]