mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
fix github secuity bot comment
This commit is contained in:
parent
e3d2f61bd4
commit
c2821d18aa
2 changed files with 8 additions and 4 deletions
|
|
@ -25,8 +25,10 @@ class PornDeadIE(InfoExtractor):
|
|||
url = url.strip().lower()
|
||||
|
||||
# if www is missing, add it because the relative URLs seem to depend on it
|
||||
if '://porndead.org' in url:
|
||||
url = url.replace('://porndead.org', '://www.porndead.org')
|
||||
parsed = urllib.parse.urlparse(url)
|
||||
if parsed.netloc == 'porndead.org':
|
||||
parsed = parsed._replace(netloc='www.porndead.org')
|
||||
url = urllib.parse.urlunparse(parsed)
|
||||
|
||||
video_id = self._match_id(url)
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
|
|
|
|||
|
|
@ -24,8 +24,10 @@ class SexDeadIE(InfoExtractor):
|
|||
def _real_extract(self, url):
|
||||
url = url.strip().lower()
|
||||
# if www is missing, add it because the relative URLs seem to depend on it
|
||||
if '://sexdead.org' in url:
|
||||
url = url.replace('://sexdead.org', '://www.sexdead.org')
|
||||
parsed = urllib.parse.urlparse(url)
|
||||
if parsed.netloc == 'sexdead.org':
|
||||
parsed = parsed._replace(netloc='www.sexdead.org')
|
||||
url = urllib.parse.urlunparse(parsed)
|
||||
|
||||
video_id = self._match_id(url)
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue