add year column

This commit is contained in:
🪞👃🪞 2025-03-23 22:05:54 +02:00
parent 4bfdd28638
commit 2ebf2c6cef
5 changed files with 52 additions and 56 deletions

View file

@ -56,6 +56,9 @@ impl Entry {
pub fn artist (&self) -> Option<Arc<str>> {
self.info.read().unwrap().artist()
}
pub fn year (&self) -> Option<Arc<str>> {
self.info.read().unwrap().year()
}
pub fn album (&self) -> Option<Arc<str>> {
self.info.read().unwrap().album()
}
@ -68,6 +71,9 @@ impl Entry {
pub fn set_artist (&self, value: &impl AsRef<str> ) {
self.info.write().unwrap().set_artist(value)
}
pub fn set_year (&self, value: &impl AsRef<str> ) {
self.info.write().unwrap().set_year(value)
}
pub fn set_album (&self, value: &impl AsRef<str> ) {
self.info.write().unwrap().set_album(value)
}