mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
Fix zhanqi again
Modified against the latest update of zhanqi's server... Signed-off-by: liushuyu <liushuyu_011@163.com>
This commit is contained in:
parent
c5e09fd549
commit
6e81b8d684
@ -18,7 +18,7 @@ def zhanqi_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
title = match1(html, title_patt) or match1(html, title_patt_backup)
|
title = match1(html, title_patt) or match1(html, title_patt_backup)
|
||||||
title = unescape_html(title)
|
title = unescape_html(title)
|
||||||
rtmp_base = "http://wshdl.load.cdn.zhanqi.tv/zqlive"
|
rtmp_base = "http://wshdl.load.cdn.zhanqi.tv/zqlive"
|
||||||
vod_base = "http://dlvod.cdn.zhanqi.tv/"
|
vod_base = "http://dlvod.cdn.zhanqi.tv"
|
||||||
|
|
||||||
if video_type == "LIVE":
|
if video_type == "LIVE":
|
||||||
rtmp_id = match1(html, rtmp_id_patt).replace('\\/','/')
|
rtmp_id = match1(html, rtmp_id_patt).replace('\\/','/')
|
||||||
@ -31,10 +31,10 @@ def zhanqi_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
elif video_type == "VOD":
|
elif video_type == "VOD":
|
||||||
vod_m3u8_request = vod_base + match1(html, vod_m3u8_id_patt).replace('\\/','/')
|
vod_m3u8_request = vod_base + match1(html, vod_m3u8_id_patt).replace('\\/','/')
|
||||||
vod_m3u8 = get_html(vod_m3u8_request)
|
vod_m3u8 = get_html(vod_m3u8_request)
|
||||||
part_url = re.findall(r'\w*/\w*\w*/\w*\w*/\w*-\w*\.ts',vod_m3u8)
|
part_url = re.findall(r'(/[^#]+)\.ts',vod_m3u8)
|
||||||
real_url = []
|
real_url = []
|
||||||
for i in part_url:
|
for i in part_url:
|
||||||
i = vod_base + i
|
i = vod_base + i + ".ts"
|
||||||
real_url.append(i)
|
real_url.append(i)
|
||||||
type_ = ''
|
type_ = ''
|
||||||
size = 0
|
size = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user