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:
parent
90f26988ac
commit
545d78840b
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user