From efb3e65a6a0d039017052df43caaf610c5dbe7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 24 Jan 2022 01:19:40 +0100 Subject: [PATCH] [sexcom] extend URL pattern (fixes #2220) --- gallery_dl/extractor/sexcom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/sexcom.py b/gallery_dl/extractor/sexcom.py index 199b1baf..9f4bfc3a 100644 --- a/gallery_dl/extractor/sexcom.py +++ b/gallery_dl/extractor/sexcom.py @@ -197,7 +197,7 @@ class SexcomSearchExtractor(SexcomExtractor): subcategory = "search" directory_fmt = ("{category}", "search", "{search[query]}") pattern = (r"(?:https?://)?(?:www\.)?sex\.com/((?:" - r"(pic|gif|video)s/([^/?#]+)|search/(pic|gif|video)s" + r"(pic|gif|video)s/([^/?#]*)|search/(pic|gif|video)s" r")/?(?:\?([^#]+))?)") test = ( ("https://www.sex.com/search/pics?query=ecchi", { @@ -208,6 +208,7 @@ class SexcomSearchExtractor(SexcomExtractor): "range": "1-10", "count": 10, }), + ("https://www.sex.com/pics/?sort=popular&sub=all&page=1"), ) def __init__(self, match):