xxthots fix

This commit is contained in:
Simon
2026-04-22 07:25:09 +00:00
parent e6eb85cd5a
commit c379550085
2 changed files with 2 additions and 7 deletions

1
.gitignore vendored
View File

@@ -17,3 +17,4 @@ Cargo.lock
*.db
migrations/.keep
.mcp.json

View File

@@ -322,13 +322,7 @@ impl XxthotsProvider {
)
.views(views);
if !preview.is_empty() {
let mut format = VideoFormat::new(
preview.clone(),
"preview".to_string(),
"video/mp4".to_string(),
);
format.add_http_header("Referer".to_string(), video_url.clone());
video_item = video_item.preview(preview).formats(vec![format]);
video_item = video_item.preview(preview);
}
items.push(video_item);
}