From 23b3a9040b4dad0e74841398aaedbc83ac2106d5 Mon Sep 17 00:00:00 2001 From: ksnzh Date: Tue, 10 May 2016 00:23:16 +0800 Subject: [PATCH 1/3] match 'http://www.dilidili.com/watch' and '/watch3' --- src/you_get/extractors/dilidili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/dilidili.py b/src/you_get/extractors/dilidili.py index 6bc6ae28..f3f8e197 100755 --- a/src/you_get/extractors/dilidili.py +++ b/src/you_get/extractors/dilidili.py @@ -35,7 +35,7 @@ def dilidili_parser_data_to_stream_types(typ ,vid ,hd2 ,sign, tmsign, ulk): #---------------------------------------------------------------------- def dilidili_download(url, output_dir = '.', merge = False, info_only = False, **kwargs): - if re.match(r'http://www.dilidili.com/watch/\w+', url): + if re.match(r'http://www.dilidili.com/watch\w+', url): html = get_content(url) title = match1(html, r'(.+)丨(.+)') #title From 17533bf6933d3c33be2c238c987275dd1c6da0b4 Mon Sep 17 00:00:00 2001 From: ksnzh Date: Tue, 10 May 2016 22:18:34 +0800 Subject: [PATCH 2/3] fix the url 'watch/' and 'watch3/' error --- src/you_get/extractors/dilidili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/dilidili.py b/src/you_get/extractors/dilidili.py index f3f8e197..8433294b 100755 --- a/src/you_get/extractors/dilidili.py +++ b/src/you_get/extractors/dilidili.py @@ -35,7 +35,7 @@ def dilidili_parser_data_to_stream_types(typ ,vid ,hd2 ,sign, tmsign, ulk): #---------------------------------------------------------------------- def dilidili_download(url, output_dir = '.', merge = False, info_only = False, **kwargs): - if re.match(r'http://www.dilidili.com/watch\w+', url): + if re.match(r'http://www.dilidili.com/watch\S', url): html = get_content(url) title = match1(html, r'(.+)丨(.+)') #title From f5c22cdfef99878027f3f9e78ff9ae2701a21a3f Mon Sep 17 00:00:00 2001 From: ksnzh Date: Tue, 10 May 2016 23:04:55 +0800 Subject: [PATCH 3/3] fix the url 'watch/' and 'watch3/' error --- src/you_get/extractors/dilidili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/dilidili.py b/src/you_get/extractors/dilidili.py index 8433294b..082f84e1 100755 --- a/src/you_get/extractors/dilidili.py +++ b/src/you_get/extractors/dilidili.py @@ -35,7 +35,7 @@ def dilidili_parser_data_to_stream_types(typ ,vid ,hd2 ,sign, tmsign, ulk): #---------------------------------------------------------------------- def dilidili_download(url, output_dir = '.', merge = False, info_only = False, **kwargs): - if re.match(r'http://www.dilidili.com/watch\S', url): + if re.match(r'http://www.dilidili.com/watch\S+', url): html = get_content(url) title = match1(html, r'(.+)丨(.+)') #title