Fixed info content type mismatch (#529)

* Fixed info content type mismatch
This commit is contained in:
euzu
2026-01-21 15:32:46 +01:00
committed by GitHub
parent 20f0abbf6b
commit f02e8a11a2
12 changed files with 178 additions and 191 deletions
@@ -77,6 +77,7 @@ async fn playlist_resolve_series_info(app_config: &Arc<AppConfig>, client: &reqw
.await
{
if !content.is_empty() {
//tokio::fs::write(&storage_path.join(format!("{provider_id}_series_info.json")), &content).await.ok();
match serde_json::from_str::<XtreamSeriesInfo>(&content) {
Ok(info) => {
let series_stream_props = SeriesStreamProperties::from_info(&info, pli);
@@ -67,6 +67,7 @@ pub async fn playlist_resolve_vod(app_config: &Arc<AppConfig>,
.await
{
if content.is_empty() { continue; }
//tokio::fs::write(&storage_path.join(format!("{provider_id}_vod_info.json")), &content).await.ok();
match serde_json::from_str::<XtreamVideoInfo>(&content) {
Ok(info) => {
let video_stream_props = VideoStreamProperties::from_info(&info, pli);