fix PixivFavoriteExtractor regex (#1405)

* fix PixivFavoriteExtractor regex

* do not use lookbehind
pull/1414/head
beesdotjson 4 years ago committed by GitHub
parent 62cfee4d28
commit 5ad615f0db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",

Loading…
Cancel
Save