From 5ad615f0db1ddc8c304e47973d9f8289eba56bb7 Mon Sep 17 00:00:00 2001 From: beesdotjson <81214296+beesdotjson@users.noreply.github.com> Date: Thu, 25 Mar 2021 06:59:33 -0700 Subject: [PATCH] fix PixivFavoriteExtractor regex (#1405) * fix PixivFavoriteExtractor regex * do not use lookbehind --- gallery_dl/extractor/pixiv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index db49b909..ebbce670 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -254,8 +254,8 @@ class PixivFavoriteExtractor(PixivExtractor): "{user_bookmark[id]} {user_bookmark[account]}") archive_fmt = "f_{user_bookmark[id]}_{id}{num}.{extension}" pattern = (r"(?:https?://)?(?:www\.|touch\.)?pixiv\.net/(?:(?:en/)?" - r"users/(\d+)/(bookmarks/artworks(?:/([^/?#]+))?|following)" - r"|bookmark\.php(?:\?([^#]*))?)") + r"users/(\d+)/(bookmarks/artworks|following)(?:/([^/?#]+))?" + r"|bookmark\.php)(?:\?([^#]*))?") test = ( ("https://www.pixiv.net/en/users/173530/bookmarks/artworks", { "url": "e717eb511500f2fa3497aaee796a468ecf685cc4",