mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 01:44:42 +01:00
[spankwire] Fix extraction
This commit is contained in:
parent
59d206ca2d
commit
d3c9af84fc
@ -45,7 +45,7 @@ def _real_extract(self, url):
|
|||||||
r'<div\s+id="descriptionContent">([^<]+)<',
|
r'<div\s+id="descriptionContent">([^<]+)<',
|
||||||
webpage, 'description', fatal=False)
|
webpage, 'description', fatal=False)
|
||||||
thumbnail = self._html_search_regex(
|
thumbnail = self._html_search_regex(
|
||||||
r'playerData\.screenShot\s*=\s*"([^"]+)"',
|
r'playerData\.screenShot\s*=\s*["\']([^"\']+)["\']',
|
||||||
webpage, 'thumbnail', fatal=False)
|
webpage, 'thumbnail', fatal=False)
|
||||||
|
|
||||||
uploader = self._html_search_regex(
|
uploader = self._html_search_regex(
|
||||||
@ -67,7 +67,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
video_urls = list(map(
|
video_urls = list(map(
|
||||||
compat_urllib_parse.unquote,
|
compat_urllib_parse.unquote,
|
||||||
re.findall(r'playerData\.cdnPath[0-9]{3,}\s*=\s*"([^"]+)', webpage)))
|
re.findall(r'playerData\.cdnPath[0-9]{3,}\s*=\s*["\']([^"\']+)["\']', webpage)))
|
||||||
if webpage.find('flashvars\.encrypted = "true"') != -1:
|
if webpage.find('flashvars\.encrypted = "true"') != -1:
|
||||||
password = self._html_search_regex(
|
password = self._html_search_regex(
|
||||||
r'flashvars\.video_title = "([^"]+)',
|
r'flashvars\.video_title = "([^"]+)',
|
||||||
|
Loading…
Reference in New Issue
Block a user