]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[porn91] the one that _search_regex returns not needs to be checked
authorPeterDing <dfhayst@gmail.com>
Fri, 29 May 2015 00:21:24 +0000 (08:21 +0800)
committerPeterDing <dfhayst@gmail.com>
Fri, 29 May 2015 00:21:24 +0000 (08:21 +0800)
youtube_dl/extractor/porn91.py

index f3a97df64ab0e8d92dabde1f2608f1889cd7b41f..b62eec92d636785aa998f854b36a104f012baed0 100644 (file)
@@ -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',