remove embed
This commit is contained in:
@@ -6,7 +6,7 @@ use crate::util::cache::VideoCache;
|
||||
use crate::util::parse_abbreviated_number;
|
||||
use crate::util::requester::Requester;
|
||||
use crate::util::time::parse_time_to_seconds;
|
||||
use crate::videos::{ServerOptions, VideoEmbed, VideoFormat, VideoItem};
|
||||
use crate::videos::{ServerOptions, VideoFormat, VideoItem};
|
||||
use async_trait::async_trait;
|
||||
use chrono::NaiveDate;
|
||||
use error_chain::error_chain;
|
||||
@@ -1106,12 +1106,6 @@ impl ShooshtimeProvider {
|
||||
tags.sort();
|
||||
tags.dedup();
|
||||
|
||||
let embed_url = page_url
|
||||
.trim_end_matches('/')
|
||||
.split('/')
|
||||
.nth_back(1)
|
||||
.map(|video_id| format!("{}/embed/{video_id}", self.url));
|
||||
|
||||
if let Some(title) = title {
|
||||
item.title = title;
|
||||
}
|
||||
@@ -1146,14 +1140,6 @@ impl ShooshtimeProvider {
|
||||
item.thumb = thumb;
|
||||
}
|
||||
}
|
||||
if let Some(source) = embed_url {
|
||||
item = item.embed(VideoEmbed {
|
||||
html: format!(
|
||||
"<iframe src=\"{source}\" frameborder=\"0\" allowfullscreen></iframe>"
|
||||
),
|
||||
source,
|
||||
});
|
||||
}
|
||||
|
||||
Ok(item)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user