Update playlist.rs

added input field to field accessor
This commit is contained in:
euzu
2025-05-27 17:59:47 +02:00
committed by GitHub
parent 271718e369
commit 5ca98ec20d
+1
View File
@@ -261,6 +261,7 @@ macro_rules! generate_field_accessor_impl_for_playlist_item_header {
$(
stringify!($prop) => Some(Cow::Borrowed(&self.$prop)),
)*
"input" => Some(Cow::Borrowed(self.input_name.as_str())),
"caption" => Some(if self.title.is_empty() { Cow::Borrowed(&self.name) } else { Cow::Borrowed(&self.title) }),
"epg_channel_id" | "epg_id" => self.epg_channel_id.as_ref().map(|s| Cow::Borrowed(s.as_str())),
_ => None,