From 6e81b8d6843001a3d9af32190a49aefbe3df4cda Mon Sep 17 00:00:00 2001 From: liushuyu Date: Thu, 18 Jun 2015 09:51:06 +0800 Subject: [PATCH] Fix zhanqi again Modified against the latest update of zhanqi's server... Signed-off-by: liushuyu --- src/you_get/extractors/zhanqi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/you_get/extractors/zhanqi.py b/src/you_get/extractors/zhanqi.py index 7ca10d1e..3551672d 100644 --- a/src/you_get/extractors/zhanqi.py +++ b/src/you_get/extractors/zhanqi.py @@ -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 = unescape_html(title) 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": 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": vod_m3u8_request = vod_base + match1(html, vod_m3u8_id_patt).replace('\\/','/') 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 = [] for i in part_url: - i = vod_base + i + i = vod_base + i + ".ts" real_url.append(i) type_ = '' size = 0