From 4e8587bad4acad0df115610c27da2139c1e15759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 30 Apr 2017 22:54:49 +0200 Subject: [PATCH] [pixiv] add support for https://i.pximg.net URLs --- gallery_dl/extractor/pixiv.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index 38828b16..35ed36f8 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -148,8 +148,8 @@ class PixivWorkExtractor(PixivUserExtractor): subcategory = "work" pattern = [(r"(?:https?://)?(?:www\.)?pixiv\.net/member(?:_illust)?\.php" r"\?(?:[^&]+&)*illust_id=(\d+)"), - (r"(?:https?://)?i\d+\.pixiv\.net(?:/.*)?/img-[^/]+/img" - r"/\d{4}(?:/\d\d){5}/(\d+)"), + (r"(?:https?://)?i(?:\d+\.pixiv|\.pximg)\.net(?:/.*)?/img-[^/]+" + r"/img/\d{4}(?:/\d\d){5}/(\d+)"), (r"(?:https?://)?img\d+\.pixiv\.net/img/[^/]+/(\d+)")] test = [ (("http://www.pixiv.net/member_illust.php" @@ -165,6 +165,10 @@ class PixivWorkExtractor(PixivUserExtractor): "img/2008/06/13/00/29/13/966412_p0_master1200.jpg"), { "url": "90c1715b07b0d1aad300bce256a0bc71f42540ba", }), + (("https://i.pximg.net/img-original/" + "img/2017/04/25/07/33/29/62568267_p0.png"), { + "url": "71b8bbd070d6b03a75ca4afb89f64d1445b2278d", + }), ] def __init__(self, match):