To align input definitions with the SourceEditor, inputs are now defined globally in the inputs section of the config file.

Each source can reference one or more inputs by their name in the inputs attribute.
This commit is contained in:
euzu
2026-01-03 19:43:43 +01:00
parent da8947dd76
commit 2fa7a01c53
8 changed files with 112 additions and 51 deletions
+30
View File
@@ -1337,6 +1337,36 @@ impl From<&XtreamPlaylistItem> for PlaylistItem {
}
}
impl From<&M3uPlaylistItem> for PlaylistItem {
fn from(item: &M3uPlaylistItem) -> Self {
let header = PlaylistItemHeader {
uuid: item.get_uuid(),
virtual_id: item.virtual_id,
id: item.provider_id.clone(),
name: item.name.clone(),
title: item.title.clone(),
logo: item.logo.clone(),
logo_small: item.logo_small.clone(),
group: item.group.clone(),
parent_code: item.parent_code.clone(),
rec: item.rec.clone(),
url: item.url.clone(),
epg_channel_id: item.epg_channel_id.clone(),
xtream_cluster: XtreamCluster::Live, // TODO based on file ending
item_type: item.item_type,
category_id: 0,
input_name: item.input_name.clone(),
chno: item.chno,
audio_track: String::new(),
time_shift: String::new(),
additional_properties: None,
};
PlaylistItem {
header
}
}
}
impl PlaylistEntry for PlaylistItem {