[pixiv] implement workaround for 'limit_sanity_level' works
(#4327, #4747, #5054, #5435, #5651, #5655) Metadata should be ~95% identical (there might be some 'date' differences) and there could be issues with R-18 works, as these require some URL manipulation to transform /c/250x250_80_a2/ thumbnail URLs into /img-original/ ones.
This commit is contained in:
@@ -184,11 +184,88 @@ __tests__ = (
|
||||
{
|
||||
"#url" : "https://www.pixiv.net/artworks/85960783",
|
||||
"#comment" : "limit_sanity_level_360.png (#4327, #5180)",
|
||||
"#category": ("", "pixiv", "work"),
|
||||
"#class" : pixiv.PixivWorkExtractor,
|
||||
"#options" : {"sanity": False},
|
||||
"#count" : 0,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.pixiv.net/en/artworks/102932581",
|
||||
"#comment" : "limit_sanity_level_360.png (#4327, #5180)",
|
||||
"#class" : pixiv.PixivWorkExtractor,
|
||||
"#options" : {"sanity": True},
|
||||
"#urls" : "https://i.pximg.net/img-original/img/2022/11/20/00/00/49/102932581_p0.jpg",
|
||||
|
||||
"caption" : "Meet a deer .",
|
||||
"comment_access_control": 0,
|
||||
"create_date" : "2022-11-19T15:00:00+00:00",
|
||||
"date" : "dt:2022-11-19 15:00:00",
|
||||
"date_url" : "dt:2022-11-19 15:00:49",
|
||||
"extension" : "jpg",
|
||||
"filename" : "102932581_p0",
|
||||
"height" : 3840,
|
||||
"id" : 102932581,
|
||||
"illust_ai_type": 1,
|
||||
"illust_book_style": 0,
|
||||
"is_bookmarked" : False,
|
||||
"is_muted" : False,
|
||||
"num" : 0,
|
||||
"page_count" : 1,
|
||||
"rating" : "General",
|
||||
"restrict" : 0,
|
||||
"sanity_level" : 2,
|
||||
"series" : None,
|
||||
"suffix" : "",
|
||||
"title" : "《 Bridge and Deer 》",
|
||||
"tools" : [],
|
||||
"total_bookmarks": range(1900, 3000),
|
||||
"total_comments": range(3, 10),
|
||||
"total_view" : range(11000, 20000),
|
||||
"type" : "illust",
|
||||
"url" : "https://i.pximg.net/img-original/img/2022/11/20/00/00/49/102932581_p0.jpg",
|
||||
"visible" : False,
|
||||
"width" : 2160,
|
||||
"x_restrict" : 0,
|
||||
"image_urls" : {
|
||||
"mini" : "https://i.pximg.net/c/48x48/custom-thumb/img/2022/11/20/00/00/49/102932581_p0_custom1200.jpg",
|
||||
"original": "https://i.pximg.net/img-original/img/2022/11/20/00/00/49/102932581_p0.jpg",
|
||||
"regular" : "https://i.pximg.net/img-master/img/2022/11/20/00/00/49/102932581_p0_master1200.jpg",
|
||||
"small" : "https://i.pximg.net/c/540x540_70/img-master/img/2022/11/20/00/00/49/102932581_p0_master1200.jpg",
|
||||
"thumb" : "https://i.pximg.net/c/250x250_80_a2/custom-thumb/img/2022/11/20/00/00/49/102932581_p0_custom1200.jpg",
|
||||
},
|
||||
"tags" : [
|
||||
"オリジナル",
|
||||
"風景",
|
||||
"イラスト",
|
||||
"illustration",
|
||||
"美しい",
|
||||
"女の子",
|
||||
"少女",
|
||||
"deer",
|
||||
"flower",
|
||||
"spring",
|
||||
],
|
||||
"user" : {
|
||||
"account" : "805482263",
|
||||
"id" : 7386235,
|
||||
"is_followed": False,
|
||||
"name" : "岛的鲸",
|
||||
"profile_image_urls": {},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.pixiv.net/en/artworks/109487939",
|
||||
"#comment" : "R-18 limit_sanity_level_360.png (#4327, #5180)",
|
||||
"#class" : pixiv.PixivWorkExtractor,
|
||||
"#urls" : [
|
||||
"https://i.pximg.net/img-original/img/2023/07/01/00/06/28/109487939_p0.png",
|
||||
"https://i.pximg.net/img-original/img/2023/07/01/00/06/28/109487939_p1.png",
|
||||
"https://i.pximg.net/img-original/img/2023/07/01/00/06/28/109487939_p2.png",
|
||||
"https://i.pximg.net/img-original/img/2023/07/01/00/06/28/109487939_p3.png",
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.pixiv.net/en/artworks/966412",
|
||||
"#category": ("", "pixiv", "work"),
|
||||
|
||||
Reference in New Issue
Block a user