mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-04 15:02:16 +02:00
Fixed info content type mismatch (#529)
* Fixed info content type mismatch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user