[realbooru] extract video fallbacks (#8661)

This commit is contained in:
Mike Fährmann
2025-12-09 11:51:33 +01:00
parent efad90696d
commit 4ee998df0a
2 changed files with 4 additions and 1 deletions

View File

@@ -30,7 +30,8 @@ class RealbooruExtractor(booru.BooruExtractor):
post = {
"id" : post_id,
"rating" : "e" if rating == "adult" else (rating or "?")[0],
"file_url" : extr('src="', '"'),
"file_url" : (s := extr('src="', '"')),
"_fallback" : (extr('src="', '"'),) if s.endswith(".mp4") else (),
"created_at": extr(">Posted at ", " by "),
"uploader" : extr(">", "<"),
"score" : extr('">', "<"),