stream properties refactored

This commit is contained in:
euzu
2025-12-27 09:52:28 +01:00
parent d5207e886f
commit cf0c928730
45 changed files with 295 additions and 446 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ impl EpgIdCache<'_> {
/// cache.normalize_and_store("Discovery Channel", Some(&"discovery.epg".to_string()));
/// assert!(cache.normalized.contains_key(&cache.normalize("Discovery Channel")));
/// ```
fn normalize_and_store(&mut self, name: &str, epg_id: Option<&String>) {
fn normalize_and_store(&mut self, name: &str, epg_id: Option<&str>) {
self.insert_normalized(name);
if let Some(chan_epg_id) = epg_id {
@@ -124,7 +124,7 @@ impl EpgIdCache<'_> {
if needs_normalization {
let name = &channel.header.name;
self.normalize_and_store(name, channel.header.epg_channel_id.as_ref());
self.normalize_and_store(name, channel.header.epg_channel_id.as_deref());
}
}
}