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
+2 -2
View File
@@ -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 {