[pixiv] fix default filenames for backgrounds

This commit is contained in:
Mike Fährmann
2022-07-11 00:35:23 +02:00
parent e1f501ed14
commit d5ded11aa8

View File

@@ -238,7 +238,7 @@ class PixivAvatarExtractor(PixivExtractor):
class PixivBackgroundExtractor(PixivExtractor):
"""Extractor for pixiv background banners"""
subcategory = "background"
filename_fmt = "background{date?_//:%Y-%m-%d}.{extension}"
filename_fmt = "background{date:?_//%Y-%m-%d}.{extension}"
archive_fmt = "background_{user[id]}_{date}"
pattern = (r"(?:https?://)?(?:www\.)?pixiv\.net"
r"/(?:en/)?users/(\d+)/background")