浏览代码

Fix swapped artist and title in music widget

Thomas Dy 7 年之前
父节点
当前提交
b02bccae13
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/widgets/music.rs

+ 1 - 1
src/widgets/music.rs

@@ -43,7 +43,7 @@ impl Mpd {
     fn get_text(&self) -> String {
         match self.song {
             Some(ref song) => match (&song.title, &song.tags.get("Artist")) {
-                (&Some(ref title), &Some(ref artist)) => format!("{} - {}", title, artist),
+                (&Some(ref title), &Some(ref artist)) => format!("{} - {}", artist, title),
                 (&Some(ref title), &None) => title.to_string(),
                 _ => {
                     let path = Path::new(&song.file);