fix github secuity bot comment

This commit is contained in:
DaKheera47 2025-10-08 00:27:11 +01:00
parent e3d2f61bd4
commit c2821d18aa
2 changed files with 8 additions and 4 deletions

View file

@ -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)

View file

@ -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)