X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/4ced5045a98009a1dd13bfb883603b4aad50fb66..c95139297fabbb92c3ddfbc64c673e0a37e1b160:/iTunesRemote.m diff --git a/iTunesRemote.m b/iTunesRemote.m index 46a01f3..ad8a4b8 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -337,7 +337,12 @@ //If we're listening to the radio. if ([[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKeyForNumber:@"pcls" fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd" appPSN:savedPSN] == 'cURT') { - temp1 = [[[ITAppleEventCenter sharedCenter] sendAEWithRequestedKey:@"pStT" eventClass:@"core" eventID:@"getd" appPSN:savedPSN] stringByAppendingString:@" (Stream)"]; + NSString *bad = [NSString stringWithUTF8String:"浳湧"]; + temp1 = [[ITAppleEventCenter sharedCenter] sendAEWithRequestedKey:@"pStT" eventClass:@"core" eventID:@"getd" appPSN:savedPSN]; + if ([temp1 isEqualToString:bad]) { + temp1 = [[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKey:@"pnam" fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd" appPSN:savedPSN]; + } + temp1 = [temp1 stringByAppendingString:@" (Stream)"]; } else { temp1 = [[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKey:@"pnam" fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd" appPSN:savedPSN]; }