mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-30 02:32:24 +01:00
epg fix (#537)
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:
@@ -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
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user