mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-30 04:52:29 +02:00
New approach for consistent xtream category ids
This commit is contained in:
@@ -530,14 +530,14 @@ pub(crate) async fn process_playlist<'a>(playlists: &mut [FetchedPlaylist<'a>],
|
||||
}
|
||||
}
|
||||
|
||||
persist_playlist(&new_playlist, flatten_tvguide(&new_epg), target, cfg)
|
||||
persist_playlist(&mut new_playlist, flatten_tvguide(&new_epg), target, cfg)
|
||||
} else {
|
||||
info!("Playlist is empty: {}", &target.name);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn persist_playlist(playlist: &[PlaylistGroup], epg: Option<Epg>,
|
||||
fn persist_playlist(playlist: &mut [PlaylistGroup], epg: Option<Epg>,
|
||||
target: &ConfigTarget, cfg: &Config) -> Result<(), Vec<M3uFilterError>> {
|
||||
let mut errors = vec![];
|
||||
for output in &target.output {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user