New Features
Aliases can now be individually enabled or disabled to manage active sources.

Bug Fixes
Improved channel identification accuracy in XMLTV outputs.

Style
Disabled aliases display with strikethrough text for better visibility.
This commit is contained in:
euzu
2026-01-26 17:37:01 +01:00
committed by GitHub
parent 62f7611125
commit 9a6b7e574b
21 changed files with 132 additions and 45 deletions
+3 -5
View File
@@ -254,12 +254,10 @@ pub struct ConfigInputAliasDto {
pub priority: i16,
#[serde(default)]
pub max_connections: u16,
#[serde(
default,
deserialize_with = "deserialize_timestamp",
skip_serializing_if = "Option::is_none"
)]
#[serde(default, deserialize_with = "deserialize_timestamp", skip_serializing_if = "Option::is_none")]
pub exp_date: Option<i64>,
#[serde(default = "default_as_true", skip_serializing_if = "is_true")]
pub enabled: bool,
}
+17 -1
View File
@@ -90,7 +90,14 @@ pub struct EpgProgramme {
pub title: Option<Arc<str>>,
pub desc: Option<Arc<str>>,
#[serde(skip)]
pub channel: Arc<str>,
channel: Arc<str>,
}
impl EpgProgramme {
// the channel_id is only available when read from xml file, reading from db do not return any epg_id
pub fn get_transient_channel_id(&self) -> &Arc<str> {
&self.channel
}
}
impl EpgProgramme {
@@ -103,4 +110,13 @@ impl EpgProgramme {
desc: None,
}
}
pub fn new_all(start: i64, stop: i64, channel: Arc<str>, title: Option<Arc<str>>, desc: Option<Arc<str>>) -> Self {
Self {
start,
stop,
channel,
title,
desc,
}
}
}