From ab3fbe0502fbafc0abf995cf7071449dabc627c6 Mon Sep 17 00:00:00 2001 From: cnbeining Date: Fri, 19 Feb 2016 02:12:39 -0500 Subject: [PATCH 1/2] [YIxia-Miaopai] Fix #926 --- src/you_get/extractors/yixia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/yixia.py b/src/you_get/extractors/yixia.py index 06433bde..fa92dfe6 100755 --- a/src/you_get/extractors/yixia.py +++ b/src/you_get/extractors/yixia.py @@ -54,9 +54,9 @@ def yixia_download(url, output_dir = '.', merge = True, info_only = False, **kwa if re.match(r'http://www.miaopai.com/show/channel/\w+', url): #PC scid = match1(url, r'http://www.miaopai.com/show/channel/(\w+)') elif re.match(r'http://www.miaopai.com/show/\w+', url): #PC - scid = match1(url, r'http://www.miaopai.com/show/(\w+)') + scid = match1(url, r'http://www.miaopai.com/show/(.+)\.htm') elif re.match(r'http://m.miaopai.com/show/channel/\w+', url): #Mobile - scid = match1(url, r'http://m.miaopai.com/show/channel/(\w+)') + scid = match1(url, r'http://m.miaopai.com/show/channel/(.+)\.htm') elif 'xiaokaxiu.com' in hostname: #Xiaokaxiu yixia_download_by_scid = yixia_xiaokaxiu_download_by_scid From 2d71b96847ac4cfc958f6fc2a0ae3687c98596ab Mon Sep 17 00:00:00 2001 From: cnbeining Date: Fri, 19 Feb 2016 02:20:20 -0500 Subject: [PATCH 2/2] [Yixia-Miaopai]Updating more pattern --- src/you_get/extractors/yixia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/yixia.py b/src/you_get/extractors/yixia.py index fa92dfe6..ca5c4bd6 100755 --- a/src/you_get/extractors/yixia.py +++ b/src/you_get/extractors/yixia.py @@ -52,7 +52,7 @@ def yixia_download(url, output_dir = '.', merge = True, info_only = False, **kwa site_info = "Yixia Miaopai" if re.match(r'http://www.miaopai.com/show/channel/\w+', url): #PC - scid = match1(url, r'http://www.miaopai.com/show/channel/(\w+)') + scid = match1(url, r'http://www.miaopai.com/show/channel/(.+)\.htm') elif re.match(r'http://www.miaopai.com/show/\w+', url): #PC scid = match1(url, r'http://www.miaopai.com/show/(.+)\.htm') elif re.match(r'http://m.miaopai.com/show/channel/\w+', url): #Mobile