mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 04:10:23 +00:00
[porn91] the one that _search_regex returns not needs to be checked
This commit is contained in:
parent
703d78bbf5
commit
806598b94d
@ -31,7 +31,6 @@ def _real_extract(self, url):
|
|||||||
title = self._search_regex(
|
title = self._search_regex(
|
||||||
r'<div id="viewvideo-title">(?P<title>.+?)</div>',
|
r'<div id="viewvideo-title">(?P<title>.+?)</div>',
|
||||||
webpage, 'title', flags=re.DOTALL)
|
webpage, 'title', flags=re.DOTALL)
|
||||||
assert title
|
|
||||||
title = title.replace('\n', '')
|
title = title.replace('\n', '')
|
||||||
|
|
||||||
# get real url
|
# get real url
|
||||||
@ -41,8 +40,6 @@ def _real_extract(self, url):
|
|||||||
r'so.addVariable\(\'seccode\',\'(?P<n2>.+?)\'', webpage, 'n2')
|
r'so.addVariable\(\'seccode\',\'(?P<n2>.+?)\'', webpage, 'n2')
|
||||||
n3 = self._search_regex(
|
n3 = self._search_regex(
|
||||||
r'so.addVariable\(\'max_vid\',\'(?P<n3>\d+)\'', webpage, 'n3')
|
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({
|
url_params = compat_urllib_parse.urlencode({
|
||||||
'VID': n1,
|
'VID': n1,
|
||||||
'mp4': '1',
|
'mp4': '1',
|
||||||
|
Loading…
Reference in New Issue
Block a user