Track service
getDownloadUrl
TrackService.getDownloadUrl(String trackId)
Get the external URL that can be used in any client for download of the track with the specified ID. The difference to the playback URL (see below) is that the download permission is checked when the URL is called. This link is the one used in the MyTunesRSS track browser.
getPlaybackUrl
TrackService.getPlaybackUrl(String trackId)
Get the external URL that can be used in any client for playback of the track with the specified ID. The difference to the download URL (see above) is that no download permission is checked when the URL is called. The link is the one used in playlists for example.
getTrackInfo
TrackService.getTrackInfo(String trackId)
Get the track information for a track.
search
TrackService.search(String searchTerm, int fuzziness, String sortOrderName, int firstItem, int maxItems)
Search for tracks using the specified search term. The search term can consist of any number of words and is matched against track names, artists, albums, comments and tags. The reult is the same as if the web interface search was used. Result list pagers can be implemented using the "firstItem" and "maxItem" parameters. A fuzziness of 0 will return exact matches only while a fuzziness of 100 will return nearly anything. Use values in between for any degree of fuzziness. The sortOrderName can be one of "Album", "Artist" and "KeepOrder" and specifies the sort order for the results.
expertSearch
TrackService.expertSearch(String searchTerm, String sortOrderName, int firstItem, int maxItems)
Search for tracks using the specified expert search term. Expert search means that the search time is a valid query for the Lucene search engine. Supported Lucene index fields are "name", "album", "artist", "genre", "filename", "comment" and "tags". The default field ist the "name". Please refer to the Lucene documentation for more information on the query syntax. The other parameters are the same as in the search function.
getTracks
TrackService.getTracks(String[] ids)
Get a list of tracks.