[luscious] update URL pattern (closes #55)

This commit is contained in:
Mike Fährmann 2017-12-14 14:15:01 +01:00
parent 0a9a07a6e1
commit 263741d243
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -18,8 +18,8 @@ class LusciousAlbumExtractor(AsynchronousExtractor):
subcategory = "album"
directory_fmt = ["{category}", "{gallery_id} {title}"]
filename_fmt = "{category}_{gallery_id}_{num:>03}.{extension}"
pattern = [(r"(?:https?://)?(?:www\.)?luscious\.net/"
r"(?:c/[^/]+/)?(?:pictures/album|albums)/([^/]+_(\d+))")]
pattern = [(r"(?:https?://)?(?:www\.|members\.)?luscious\.net/"
r"(?:c/[^/?&#]+/)?(?:pictures/album|albums)/([^/?&#]+_(\d+))")]
test = [
(("https://luscious.net/c/hentai_manga/albums/"
"okinami-no-koigokoro_277031/view/"), {
@ -32,6 +32,8 @@ class LusciousAlbumExtractor(AsynchronousExtractor):
"keyword": "02624ff1097260e2a3c1b220afc92ea4c6b109b3",
}),
("https://luscious.net/albums/okinami-no-koigokoro_277031/", None),
("https://www.luscious.net/albums/okinami_277031/", None),
("https://members.luscious.net/albums/okinami_277031/", None),
]
def __init__(self, match):