remove embed

This commit is contained in:
Simon
2026-03-17 09:58:48 +00:00
parent 0563a7231a
commit 9ca9e820d9
2 changed files with 3 additions and 22 deletions

View File

@@ -8,7 +8,7 @@ use crate::status::*;
use crate::util::cache::VideoCache;
use crate::util::parse_abbreviated_number;
use crate::util::requester::Requester;
use crate::videos::{ServerOptions, VideoEmbed, VideoFormat, VideoItem};
use crate::videos::{ServerOptions, VideoFormat, VideoItem};
use async_trait::async_trait;
use chrono::DateTime;
use error_chain::error_chain;
@@ -1038,12 +1038,7 @@ sys.stdout.buffer.write(response.content)
}
}
if let Some((embed_html, iframe_url)) = selected_embed.or(fallback_embed) {
item.embed = Some(VideoEmbed {
html: embed_html,
source: iframe_url.clone(),
});
if let Some((_embed_html, iframe_url)) = selected_embed.or(fallback_embed) {
let proxy_url = self.proxied_video(options, page_url);
if Self::is_allowed_vidara_iframe_url(&iframe_url) {
match self.resolve_vidara_stream(&iframe_url).await {