[webtoons] match arbitrary language codes (closes #1643)

pull/1677/head
Mike Fährmann 3 years ago
parent 79b7ee2712
commit 8bdeb2a6dd
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -11,7 +11,7 @@
from .common import GalleryExtractor, Extractor, Message
from .. import exception, text, util
BASE_PATTERN = r"(?:https?://)?(?:www\.)?webtoons\.com/((en|fr)"
BASE_PATTERN = r"(?:https?://)?(?:www\.)?webtoons\.com/(([^/?#]+)"
class WebtoonsBase():
@ -118,6 +118,9 @@ class WebtoonsComicExtractor(WebtoonsBase, Extractor):
"list?title_no=210827&page=9"), {
"count": ">= 18",
}),
# (#1643)
("https://www.webtoons.com/es/romance/lore-olympus/"
"list?title_no=1725"),
)
def __init__(self, match):

Loading…
Cancel
Save