[civitai] implement retrieving 'post' metadata (#7548)

This commit is contained in:
Mike Fährmann
2025-07-07 11:48:21 +02:00
parent d25b1f22f3
commit ad84e72fda
3 changed files with 31 additions and 7 deletions

View File

@@ -193,8 +193,9 @@ __tests__ = (
{
"#url" : "https://civitai.com/images/44789630",
"#comment": "video",
"#comment": "video - 'post' metadata (#7548)",
"#class" : civitai.CivitaiImageExtractor,
"#options": {"metadata": "post"},
"#results": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6a09ec54-6de4-4af1-b11d-2d0d8a66d651/quality=100/copy_C6C532CE-EC47-4A52-9138-AEF1D7756F16.Mp4",
"extension": "mp4",
@@ -221,6 +222,18 @@ __tests__ = (
"width" : 1080,
},
},
"post": {
"availability": "Public",
"collectionId": None,
"detail" : None,
"id" : 10151863,
"modelVersion": None,
"modelVersionId": None,
"nsfwLevel" : 2,
"publishedAt" : "2024-12-10T19:20:51.579Z",
"tags" : [],
"title" : None,
},
"user" : {
"username": "jboogx_creative",
},