[civitai] ensure 'file' & 'post' data has a 'date' value (#7548)

https://github.com/mikf/gallery-dl/issues/7548#issuecomment-3091492518
This commit is contained in:
Mike Fährmann
2025-07-19 10:10:39 +02:00
parent 0b991148a1
commit 272df323f3
2 changed files with 19 additions and 2 deletions

View File

@@ -225,6 +225,7 @@ __tests__ = (
"post": {
"availability": "Public",
"collectionId": None,
"date" : "dt:2024-12-10 19:20:51",
"detail" : None,
"id" : 10151863,
"modelVersion": None,
@@ -336,6 +337,7 @@ __tests__ = (
},
"file": {
"id" : {30748752, 30748747, 30748733},
"date": "dt:2024-09-22 12:54:15",
"uuid": {"6220fa0f-9037-4b1d-bfbd-a740a06eeb7c",
"cd1edb7f-7b50-4da5-bf23-d38f24d8aef0",
"cfd5b231-accd-49bd-8bde-370880f63aa6"},
@@ -436,6 +438,15 @@ __tests__ = (
"#pattern": r"https://image\.civitai\.com/xG1nkqKTMzGDvpLrqFT7WA/[0-9a-f-]+/original=true/\S+\.(jpe?g|png)",
"#range" : "1-50",
"#count" : 50,
"file": {
"id" : int,
"date": "type:datetime",
},
"post": {
"id" : int,
"date": "type:datetime",
},
},
{