[chevereto] fix extraction (#7073 #7079)

extract file URLs from an alternate location
if 'og:image' is not set
This commit is contained in:
Mike Fährmann
2025-02-28 10:34:00 +01:00
parent 8256a7a8e4
commit aeb72de575

View File

@@ -57,7 +57,8 @@ class CheveretoImageExtractor(CheveretoExtractor):
image = {
"id" : self.path.rpartition(".")[2],
"url" : extr('<meta property="og:image" content="', '"'),
"url" : (extr('<meta property="og:image" content="', '"') or
extr('url: "', '"')),
"album": text.extr(extr("Added to <a", "/a>"), ">", "<"),
"user" : extr('username: "', '"'),
}