diff options
author | PeterDing <dfhayst@gmail.com> | 2015-05-29 08:21:24 +0800 |
---|---|---|
committer | PeterDing <dfhayst@gmail.com> | 2015-05-29 08:21:24 +0800 |
commit | 806598b94dec1268566ae71d671116060f7971d6 (patch) | |
tree | 76f717adba16828272125cb778d01b66e2491a89 | |
parent | 703d78bbf5edf73f60447ac273c0d303d28cc340 (diff) |
[porn91] the one that _search_regex returns not needs to be checked
-rw-r--r-- | youtube_dl/extractor/porn91.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/youtube_dl/extractor/porn91.py b/youtube_dl/extractor/porn91.py index f3a97df64..b62eec92d 100644 --- a/youtube_dl/extractor/porn91.py +++ b/youtube_dl/extractor/porn91.py @@ -31,7 +31,6 @@ class Porn91IE(InfoExtractor): title = self._search_regex( r'<div id="viewvideo-title">(?P<title>.+?)</div>', webpage, 'title', flags=re.DOTALL) - assert title title = title.replace('\n', '') # get real url @@ -41,8 +40,6 @@ class Porn91IE(InfoExtractor): r'so.addVariable\(\'seccode\',\'(?P<n2>.+?)\'', webpage, 'n2') n3 = self._search_regex( r'so.addVariable\(\'max_vid\',\'(?P<n3>\d+)\'', webpage, 'n3') - if not (n1 and n2 and n3): - raise ExtractorError("You are Blocked by Server.") url_params = compat_urllib_parse.urlencode({ 'VID': n1, 'mp4': '1', |