From f106675753c15d965f583820c27b8b6b6764ec72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Thu, 28 Jun 2012 17:03:39 +0200 Subject: [PATCH] extended mpd control to check if track is playing after starting new song --- src/de/ctdo/crashtest/mpd/MPDController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/ctdo/crashtest/mpd/MPDController.java b/src/de/ctdo/crashtest/mpd/MPDController.java index 838957f..42728fc 100644 --- a/src/de/ctdo/crashtest/mpd/MPDController.java +++ b/src/de/ctdo/crashtest/mpd/MPDController.java @@ -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; }