[chevereto] extract 'date' metadata (#7437)

This commit is contained in:
Mike Fährmann
2025-04-27 20:53:06 +02:00
parent 19fc4e0ba4
commit 7386cb78bc
3 changed files with 4 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ class CheveretoImageExtractor(CheveretoExtractor):
"id" : self.path.rpartition(".")[2],
"url" : url,
"album": text.extr(extr("Added to <a", "/a>"), ">", "<"),
"date" : text.parse_datetime(extr('<span title="', '"')),
"user" : extr('username: "', '"'),
}

View File

@@ -16,6 +16,7 @@ __tests__ = (
"#sha1_content": "ec7fac6b427f7af01038619208cd69478e91ddef",
"album" : "",
"date" : "dt:2025-02-17 19:15:25",
"extension": "jpg",
"filename" : "IMG_20250217_1606226b345a5dbd0e8971",
"id" : "TJNphg",

View File

@@ -16,6 +16,7 @@ __tests__ = (
"#sha1_content": "098e5e9b17ad634358426e0ffd1c93871474d13c",
"album" : "",
"date" : "dt:2022-06-05 03:24:25",
"extension": "jpg",
"filename" : "funnymeme",
"id" : "LecXGS",
@@ -30,6 +31,7 @@ __tests__ = (
"#pattern" : r"https://simp2\.jpg5\.su/hannahowo_00457\.jpg",
"album": "401-500",
"date" : "dt:2022-03-23 13:50:52",
},
{