You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return [[RESTResponse alloc] initWithJSON:[NSStringstringWithFormat:@"\"%@\" is not known resource of a track. \"file\" expected.",[components objectAtIndex:4]] andStatus:404];
233
+
}
234
+
}
235
+
}else{
236
+
return [[RESTResponse alloc] initWithJSON:@"ID must follow \"tracks\" resources request"andStatus:400];
237
+
}
173
238
}else{
174
239
/*
175
240
/media/<bad>
176
241
*/
177
242
178
-
return [[RESTResponse alloc] initWithJSON:[NSStringstringWithFormat:@"\"%@\" is not known resource of the media library. \"playlists\" expected.",[components objectAtIndex:2]] andStatus:404];
243
+
return [[RESTResponse alloc] initWithJSON:[NSStringstringWithFormat:@"\"%@\" is not known resource of the media library. \"playlists\"or \"tracks\"expected.",[components objectAtIndex:2]] andStatus:404];
return [selfresultAsCount:[NSStringstringWithFormat:@"tell application \"iTunes\"\n count of tracks of first item of (playlists whose persistent ID is \"%@\")\n end tell",pid]];
return [selfjsonForCode:[NSStringstringWithFormat:@"tell application \"iTunes\"\n set the rating of first item of (tracks whose persistent ID is \"%@\") to %@\n end tell",pid,rating]];
730
+
}
731
+
727
732
- (NSString*) jsonTrackWithID:(NSString*) pid {
728
733
return [selfjsonForCode:[NSStringstringWithFormat:@"tell application \"iTunes\"\n properties of first item of (tracks whose persistent ID is \"%@\")\n end tell",pid]];
return [selfcopyResultAsString:[NSStringstringWithFormat:@"tell application \"iTunes\"\n location of first item of (tracks whose persistent ID is \"%@\")\n end tell",pid]];
return [selfjsonForCode:[NSStringstringWithFormat:@"tell application \"iTunes\"\n properties of first item of (playlists whose persistent ID is \"%@\")\n end tell",pid]];
return [selfjsonForCode:[NSStringstringWithFormat:@"tell application \"iTunes\"\n properties of first item of (tracks of (first item of (playlists whose persistent ID is \"%@\")) whose persistent ID is \"%@\")\n end tell",pid,tid]];
0 commit comments