mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
add year column
This commit is contained in:
parent
4bfdd28638
commit
2ebf2c6cef
5 changed files with 52 additions and 56 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue