[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.
This commit is contained in:
pubak42
2022-12-16 10:16:40 +01:00
committed by GitHub
parent 6f0735568c
commit e7326cdf1d

View File

@@ -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('<iframe', '>')
src = (text.extr(iframe, ' src="', '"') or