mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-28 20:12:12 +02:00
Update playlist.rs
added input field to field accessor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user