From e7326cdf1d1b48a954308b27782ba85a17209a3a Mon Sep 17 00:00:00 2001 From: pubak42 <106606827+pubak42@users.noreply.github.com> Date: Fri, 16 Dec 2022 10:16:40 +0100 Subject: [PATCH] [sex.com] Download videos from cdn (#3408) The format of video sources was changed recently to be a full URL with https:// in the beginning. The original extractor code appended the video source URL to root url of the website, thus yielding invalid url in format ...sex.comhttps... that failed to resolve. --- gallery_dl/extractor/sexcom.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gallery_dl/extractor/sexcom.py b/gallery_dl/extractor/sexcom.py index aa6726d4..486bf921 100644 --- a/gallery_dl/extractor/sexcom.py +++ b/gallery_dl/extractor/sexcom.py @@ -74,9 +74,7 @@ class SexcomExtractor(Extractor): path = text.extr(info, "src: '", "'") data["filename"] = path.rpartition("/")[2] data["extension"] = "mp4" - if "'HD'" in info: - path += "/hd" - data["url"] = self.root + path + data["url"] = path else: iframe = extr('') src = (text.extr(iframe, ' src="', '"') or