Fix HDmario
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ def hdpass_get_servers(item):
|
|||||||
|
|
||||||
data = httptools.downloadpage(url, CF=False).data
|
data = httptools.downloadpage(url, CF=False).data
|
||||||
patron_res = '<div class="buttons-bar resolutions-bar">(.*?)<div class="buttons-bar'
|
patron_res = '<div class="buttons-bar resolutions-bar">(.*?)<div class="buttons-bar'
|
||||||
patron_mir = '<div class="buttons-bar hosts-bar">(.*?)<div id="main-player'
|
patron_mir = '<div class="buttons-bar hosts-bar">(.*?)(?:<div id="main-player|<script)'
|
||||||
patron_option = r'<a href="([^"]+?)"[^>]+>([^<]+?)</a'
|
patron_option = r'<a href="([^"]+?)"[^>]+>([^<]+?)</a'
|
||||||
|
|
||||||
res = scrapertools.find_single_match(data, patron_res)
|
res = scrapertools.find_single_match(data, patron_res)
|
||||||
|
|||||||
@@ -971,7 +971,7 @@ def play_video(item, strm=False, force_direct=False, autoplay=False):
|
|||||||
xlistitem.setProperty("inputstream.adaptive.license_type", item.drm)
|
xlistitem.setProperty("inputstream.adaptive.license_type", item.drm)
|
||||||
xlistitem.setProperty("inputstream.adaptive.license_key", item.license)
|
xlistitem.setProperty("inputstream.adaptive.license_key", item.license)
|
||||||
xlistitem.setMimeType('application/dash+xml')
|
xlistitem.setMimeType('application/dash+xml')
|
||||||
elif item.manifest == 'hls' or mediaurl.split('|')[0].endswith('m3u8'):
|
elif item.manifest == 'hls' or (mediaurl.split('|')[0].endswith('m3u8') and mediaurl.startswith('http')):
|
||||||
if not install_inputstream():
|
if not install_inputstream():
|
||||||
return
|
return
|
||||||
xlistitem.setProperty('inputstream' if PY3 else 'inputstreamaddon', 'inputstream.adaptive')
|
xlistitem.setProperty('inputstream' if PY3 else 'inputstreamaddon', 'inputstream.adaptive')
|
||||||
|
|||||||
Reference in New Issue
Block a user