Module album

back

Procs

proc albumInfo(fm: LastFM; album, artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.getInfo. Returns the JsonNode of the contents of the response.
proc albumInfo(fm: LastFM; album, artist, username: string; autocorrect = on): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.getInfo. This variation of the function allows for a user's playcount for the album to be returned. Returns the JsonNode of the contents of the response.
proc albumAddTags(fm: LastFMSession; album, artist: string; tags: AtMost[10, string]): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.addTags. tags is of type AtMost[10, string], which is any array of strings with length <= 10. Returns the JsonNode of the contents of the response.
proc albumRemoveTag(fm: LastFMSession; album, artist: string; tag: string): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.removeTags. Returns the JsonNode of the contents of the response.
proc albumTags(fm: LastFM; album, artist, user: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.getTags. This version of the function may be used for both unauthenticated and authenticated sessions, and thus requires that a user parameter be specified. Returns the JsonNode of the contents of the response.
proc albumTags(fm: LastFMSession; album, artist: string; autocorrect = on): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.getTags. This version of the function can only be used with an authenticated Last.FM session. Returns the JsonNode of the contents of the response.
proc albumTopTags(fm: LastFM; album, artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.getTopTags. Currently missing the optional mbid field. Returns the JsonNode of the contents of the response.
proc searchAlbums(fm: LastFM; album: string; page = 1; limit = 30): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Album.search. Returns the JsonNode of the contents of the response.