New approach for consistent xtream category ids

This commit is contained in:
euzu
2024-03-28 11:08:24 +01:00
parent 4a3cf99ec7
commit 46ef7e383d
4 changed files with 58 additions and 9 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ pub(crate) fn parse_xtream(input: &ConfigInput,
Ok(Some(group_map.values().map(|category| {
let cat = category.borrow();
PlaylistGroup {
id: cat.category_id.parse::<u32>().unwrap_or(0),
id: 0,
xtream_cluster: xtream_cluster.clone(),
title: Rc::clone(&cat.category_name),
channels: cat.channels.clone()