extended mpd control to check if track is playing after starting new song

This commit is contained in:
Lucas Pleß 2012-06-28 17:03:39 +02:00
parent d50ee914ef
commit f106675753
1 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,6 @@ public class MPDController implements IMPDController {
player.stop(); player.stop();
player.playId(song); player.playId(song);
break; break;
} else {
System.out.println("MPD: track title or artist is null or not correct," + song.toString());
} }
} }
@ -87,7 +85,7 @@ public class MPDController implements IMPDController {
System.out.println("MPD: song is correctly playing"); System.out.println("MPD: song is correctly playing");
return; return;
} else { } else {
System.out.println("MPD: whilst checking current song: track title or artist is null or not correct " + song.toString()); System.out.println("MPD: wrong track is playing. " + song.getArtist() + " - " + song.getTitle());
} }
System.out.println("MPD: next try"); System.out.println("MPD: next try");
@ -109,6 +107,8 @@ public class MPDController implements IMPDController {
song.getTitle().toLowerCase().contentEquals(title.toLowerCase())) { song.getTitle().toLowerCase().contentEquals(title.toLowerCase())) {
return true; return true;
} }
} else {
System.out.println("MPD: track title or artist is null " + artist + " - " + title);
} }
return false; return false;
} }