extended mpd control to check if track is playing after starting new song
This commit is contained in:
parent
d50ee914ef
commit
f106675753
|
@ -74,8 +74,6 @@ public class MPDController implements IMPDController {
|
|||
player.stop();
|
||||
player.playId(song);
|
||||
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");
|
||||
return;
|
||||
} 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");
|
||||
|
@ -109,6 +107,8 @@ public class MPDController implements IMPDController {
|
|||
song.getTitle().toLowerCase().contentEquals(title.toLowerCase())) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
System.out.println("MPD: track title or artist is null " + artist + " - " + title);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue