X-Git-Url: http://cgit.babelmonkeys.de/?p=mpdbot.git;a=blobdiff_plain;f=src%2FPEPThread.m;h=4daaefc3636f2d86ba94fab416b1a55bba12e08d;hp=91976aedac5af205e2b88a089283dc851de23cc2;hb=78c398c0a23f734aa2e865c6832e1667dfe95929;hpb=4afcbe21c57395f3c243d71110f93febe9acba8c diff --git a/src/PEPThread.m b/src/PEPThread.m index 91976ae..4daaefc 100644 --- a/src/PEPThread.m +++ b/src/PEPThread.m @@ -77,12 +77,15 @@ tune = [OFXMLElement elementWithName: @"tune" namespace: NS_TUNE]; [item addChild: tune]; + + [conn send: @"command_list_begin"]; [conn send: @"status"]; + [conn send: @"currentsong"]; + [conn send: @"command_list_end"]; response = [conn response]; + if ([[response objectForKey: @"state"] isEqual: @"play"]) { - [conn send: @"currentsong"]; - response = [conn response]; if ((answer = [response objectForKey: @"Artist"])) [tune addChild: [OFXMLElement