mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +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:
|
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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user