mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
player: Implement MPRIS
This commit is contained in:
parent
c378305465
commit
31144dff46
6 changed files with 213 additions and 67 deletions
|
|
@ -59,4 +59,19 @@ impl PlaylistItem {
|
|||
.property("path", path.as_ref())
|
||||
.build()
|
||||
}
|
||||
|
||||
pub fn make_title(&self) -> String {
|
||||
let mut title = self.title();
|
||||
|
||||
if let Some(part_title) = self.part_title() {
|
||||
title.push_str(": ");
|
||||
title.push_str(&part_title);
|
||||
}
|
||||
|
||||
title
|
||||
}
|
||||
|
||||
pub fn make_subtitle(&self) -> Option<String> {
|
||||
self.performers()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue