Skip to content

Commit

Permalink
[sexcom] extend URL pattern (fixes #2220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 24, 2022
1 parent 3f2b633 commit efb3e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gallery_dl/extractor/sexcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand All @@ -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):
Expand Down

0 comments on commit efb3e65

Please sign in to comment.