Wrong Category Id after update fix

This commit is contained in:
euzu
2025-12-30 15:06:16 +01:00
parent b3a7e6af7c
commit 25d3454932
20 changed files with 269 additions and 135 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use crate::utils::xtream::get_xtream_stream_url_base;
use shared::error::{create_tuliprox_error_result, TuliproxError, TuliproxErrorKind};
use shared::model::{EpisodeStreamProperties, LiveStreamProperties, PlaylistGroup, PlaylistItem, PlaylistItemHeader, PlaylistItemType, SeriesStreamDetailEpisodeProperties, SeriesStreamProperties, StreamProperties, UUIDType, VideoStreamProperties, XtreamCluster};
use shared::utils::{generate_playlist_uuid, trim_last_slash};
use std::collections::HashMap;
use indexmap::IndexMap;
use tokio::task::spawn_blocking;
async fn map_to_xtream_category(categories: DynReader) -> Result<Vec<XtreamCategory>, TuliproxError> {
@@ -136,7 +136,7 @@ pub async fn parse_xtream(input: &ConfigInput,
match map_to_xtream_streams(xtream_cluster, streams).await {
Ok(xtream_streams) => {
let mut group_map: HashMap<u32, XtreamCategory> =
let mut group_map: IndexMap<u32, XtreamCategory> =
xtream_categories.into_iter().map(|category| (category.category_id, category)).collect();
let mut unknown_grp = XtreamCategory {
category_id: 0u32,