Skip to content

Commit

Permalink
[webtoons] match arbitrary language codes (closes #1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 21, 2021
1 parent 79b7ee2 commit 8bdeb2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gallery_dl/extractor/webtoons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 8bdeb2a

Please sign in to comment.