Package de.umass.lastfm
Class Album
java.lang.Object
de.umass.lastfm.ImageHolder
de.umass.lastfm.MusicEntry
de.umass.lastfm.Album
Bean for Album info.
- Author:
- Janni Kovacs
-
Field Summary
Fields inherited from class de.umass.lastfm.MusicEntry
id, listeners, mbid, name, percentageChange, playcount, streamable, tags, url, userPlaycount
Fields inherited from class de.umass.lastfm.ImageHolder
imageUrls
-
Method Summary
Modifier and TypeMethodDescriptionstatic Result
Tag an album using a list of user supplied tags.static Collection<BuyLink>
getBuylinks
(String artist, String albumOrMbid, String country, String apiKey) Get a list of Buy Links for a particular Album.static Album
Get the metadata for an album on Last.fm using the album name or a musicbrainz id.static Album
Get the metadata for an album on Last.fm using the album name or a musicbrainz id.static Collection<String>
Get the tags applied by an individual user to an album on Last.fm.static Collection<Tag>
getTopTags
(String artist, String albumOrMbid, String apiKey) Get the top tags for an album on Last.fm, ordered by popularity.static Result
Remove a user's tag from an album.static Collection<Album>
Search for an album by name.Methods inherited from class de.umass.lastfm.MusicEntry
getId, getListeners, getMbid, getName, getPercentageChange, getPlaycount, getTags, getUrl, getUserPlaycount, getWikiLastChanged, getWikiSummary, getWikiText, isStreamable, loadStandardInfo
Methods inherited from class de.umass.lastfm.ImageHolder
availableSizes, getImageURL, loadImages
-
Method Details
-
getArtist
-
getReleaseDate
-
getInfo
Get the metadata for an album on Last.fm using the album name or a musicbrainz id. See playlist.fetch on how to get the album playlist.- Parameters:
artist
- Artist's namealbumOrMbid
- Album name or MBIDapiKey
- The API key- Returns:
- Album metadata
-
getInfo
Get the metadata for an album on Last.fm using the album name or a musicbrainz id. See playlist.fetch on how to get the album playlist.- Parameters:
artist
- Artist's namealbumOrMbid
- Album name or MBIDusername
- The username for the context of the request. If supplied, the user's playcount for this album is included in the response.apiKey
- The API key- Returns:
- Album metadata
-
addTags
Tag an album using a list of user supplied tags.- Parameters:
artist
- The artist name in questionalbum
- The album name in questiontags
- A comma delimited list of user supplied tags to apply to this album. Accepts a maximum of 10 tags.session
- The Session instance- Returns:
- the Result of the operation
- See Also:
-
removeTag
Remove a user's tag from an album.- Parameters:
artist
- The artist name in questionalbum
- The album name in questiontag
- A single user tag to remove from this album.session
- The Session instance- Returns:
- the Result of the operation
- See Also:
-
getTags
Get the tags applied by an individual user to an album on Last.fm.- Parameters:
artist
- The artist name in questionalbum
- The album name in questionsession
- A Session instance- Returns:
- a list of tags
-
search
Search for an album by name. Returns album matches sorted by relevance.- Parameters:
album
- The album name in question.apiKey
- A Last.fm API key.- Returns:
- a Collection of matches
-
getBuylinks
public static Collection<BuyLink> getBuylinks(String artist, String albumOrMbid, String country, String apiKey) Get a list of Buy Links for a particular Album. It is required that you supply either the artist and track params or the mbid param.- Parameters:
artist
- The artist name in questionalbumOrMbid
- Album name or MBIDcountry
- A country name, as defined by the ISO 3166-1 country names standardapiKey
- A Last.fm API key- Returns:
- a Collection of
BuyLink
s
-
getTopTags
Get the top tags for an album on Last.fm, ordered by popularity. You either have to specify an album and artist name or an mbid. If you specify an mbid you may passnull
for the first parameter.- Parameters:
artist
- The artist namealbumOrMbid
- Album name or MBIDapiKey
- A Last.fm API key- Returns:
- list of top tags
-