[generic] revert pattern change

This commit is contained in:
Mike Fährmann
2023-03-09 22:25:23 +01:00
parent 34a7fab0e2
commit 4883420e67
2 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,8 @@ class DirectlinkExtractor(Extractor):
"mZPiDgT8hmQdQ5K_gYyu0g.JPEG/2.JPG"),
# internationalized domain name
("https://räksmörgås.josefsson.org/raksmorgas.jpg", {
"content": "f7e00768ab009c969e70d775047cdd302ca51762",
"url": "a65667f670b194afbd1e3ea5e7a78938d36747da",
"keyword": "fd5037fe86eebd4764e176cbaf318caec0f700be",
}),
)

View File

@@ -26,7 +26,7 @@ class GenericExtractor(Extractor):
# Based on: https://tools.ietf.org/html/rfc3986#appendix-B
pattern += r"""
(?P<scheme>https?://)? # optional http(s) scheme
(?P<domain>[^/?#]+) # required domain
(?P<domain>[-\w\.]+) # required domain
(?P<path>/[^?#]*)? # optional path
(?:\?(?P<query>[^#]*))? # optional query
(?:\#(?P<fragment>.*))? # optional fragment