diff options
| author | 2022-11-22 04:28:38 -0500 | |
|---|---|---|
| committer | 2022-11-22 04:28:38 -0500 | |
| commit | 7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch) | |
| tree | 4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/extractor/sexcom.py | |
| parent | e59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff) | |
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/extractor/sexcom.py')
| -rw-r--r-- | gallery_dl/extractor/sexcom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/extractor/sexcom.py b/gallery_dl/extractor/sexcom.py index 830274a..aa6726d 100644 --- a/gallery_dl/extractor/sexcom.py +++ b/gallery_dl/extractor/sexcom.py @@ -43,7 +43,7 @@ class SexcomExtractor(Extractor): yield self.root + href pager = extr('id="pagenum"', '</div>') - url = text.extract(pager, ' href="', '"')[0] + url = text.extr(pager, ' href="', '"') if not url: return url = text.urljoin(self.root, url) @@ -71,7 +71,7 @@ class SexcomExtractor(Extractor): info = extr("player.updateSrc(", ");") if info: - path = text.extract(info, "src: '", "'")[0] + path = text.extr(info, "src: '", "'") data["filename"] = path.rpartition("/")[2] data["extension"] = "mp4" if "'HD'" in info: @@ -79,8 +79,8 @@ class SexcomExtractor(Extractor): data["url"] = self.root + path else: iframe = extr('<iframe', '>') - src = (text.extract(iframe, ' src="', '"')[0] or - text.extract(iframe, " src='", "'")[0]) + src = (text.extr(iframe, ' src="', '"') or + text.extr(iframe, " src='", "'")) if not src: self.log.warning("Unable to fetch media from %s", url) return None |
