[civitai] update "My Reactions" handling (#6263)
- use "reactions" subcategory - raise exception when no api-key or cookies are present
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
from gallery_dl.extractor import civitai
|
||||
from gallery_dl import exception
|
||||
|
||||
|
||||
__tests__ = (
|
||||
@@ -177,14 +178,23 @@ __tests__ = (
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://civitai.com/user/USER/images?section=reactions",
|
||||
"#class": civitai.CivitaiUserImagesExtractor,
|
||||
"#auth" : True,
|
||||
"#urls" : (
|
||||
"#url" : "https://civitai.com/user/USER/images?section=reactions",
|
||||
"#category": ("", "civitai", "reactions"),
|
||||
"#class" : civitai.CivitaiUserImagesExtractor,
|
||||
"#auth" : True,
|
||||
"#urls" : (
|
||||
"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/dd29c97a-1e95-4186-8df5-632736cbae79/original=true/00012-2489035818.png",
|
||||
"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/5c4efa68-bb58-47c5-a716-98cd0f51f047/original=true/00013-4238863814.png",
|
||||
"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/69bf3279-df2c-4ec8-b795-479e9cd3db1b/original=true/00014-3150861441.png",
|
||||
),
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://civitai.com/user/USER/images?section=reactions",
|
||||
"#category": ("", "civitai", "reactions"),
|
||||
"#class" : civitai.CivitaiUserImagesExtractor,
|
||||
"#auth" : False,
|
||||
"#exception": exception.AuthorizationError,
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user