From: Florian Zeitz Date: Thu, 22 Dec 2011 20:09:39 +0000 (+0100) Subject: Use filename if no title tag exists X-Git-Url: http://cgit.babelmonkeys.de/?p=mpdbot.git;a=commitdiff_plain;h=21fb550444714d193e83f5255956710aca5e13ef Use filename if no title tag exists --- diff --git a/src/PEPThread.m b/src/PEPThread.m index 80577e1..91976ae 100644 --- a/src/PEPThread.m +++ b/src/PEPThread.m @@ -106,6 +106,12 @@ elementWithName: @"title" namespace: NS_TUNE stringValue: answer]]; + else if ((answer = + [response objectForKey: @"file"])) + [tune addChild: [OFXMLElement + elementWithName: @"title" + namespace: NS_TUNE + stringValue: answer]]; if ((answer = [response objectForKey: @"Track"])) [tune addChild: [OFXMLElement