]> cgit.babelmonkeys.de Git - mpdbot.git/commitdiff
Use filename if no title tag exists
authorFlorian Zeitz <florob@babelmonkeys.de>
Thu, 22 Dec 2011 20:09:39 +0000 (21:09 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Thu, 22 Dec 2011 20:09:39 +0000 (21:09 +0100)
src/PEPThread.m

index 80577e100fc73e19977a51b39b8e8f842f318f36..91976aedac5af205e2b88a089283dc851de23cc2 100644 (file)
                                            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