This commit is contained in:
Simon
2025-11-29 18:52:48 +00:00
parent 3f57569511
commit e924c89573

View File

@@ -7,7 +7,7 @@ use crate::util::time::parse_time_to_seconds;
use crate::videos::{ServerOptions, VideoItem}; use crate::videos::{ServerOptions, VideoItem};
use async_trait::async_trait; use async_trait::async_trait;
use error_chain::error_chain; use error_chain::error_chain;
use htmlentity::entity::{ICodedDataTrait, decode, encode, CharacterSet, EncodeType}; use htmlentity::entity::{ICodedDataTrait, decode};
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
use std::{vec}; use std::{vec};
@@ -229,11 +229,7 @@ impl PmvhavenProvider {
let video_item = VideoItem::new( let video_item = VideoItem::new(
id, id,
title, title,
encode( video_url.replace(" ", "%20").to_string(),
video_url.as_bytes(),
&EncodeType::NamedOrHex,
&CharacterSet::HtmlAndNonASCII
).to_string().unwrap_or(video_url.clone()),
"pmvhaven".to_string(), "pmvhaven".to_string(),
thumb, thumb,
duration as u32, duration as u32,