1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

[seiga] match direct-links to images

This commit is contained in:
Mike Fährmann 2016-08-26 23:32:59 +02:00
parent 85cd7c34b1
commit 813320d7db
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -18,7 +18,9 @@ class SeigaImageExtractor(Extractor):
subcategory = "image"
directory_fmt = ["{category}"]
filename_fmt = "{category}_{image-id}.jpg"
pattern = [r"(?:https?://)?(?:www\.|seiga\.)?nicovideo\.jp/seiga/im(\d+)"]
pattern = [(r"(?:https?://)?(?:www\.|seiga\.)?nicovideo\.jp/"
r"(?:seiga/im|image/source/)(\d+)"),
r"(?:https?://)?lohas\.nicoseiga\.jp/(?:priv|o)/[^/]+/\d+/(\d+)"]
test = [("http://seiga.nicovideo.jp/seiga/im5977527", {
"keyword": "e2ea59186c47beb71484ba35d550cf6511ac185a",
"content": "d9202292012178374d57fb0126f6124387265297",