Module artist

back

Procs

proc artistCorrection(fm: LastFM; artist: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getCorrection. Returns the JsonNode of the contents of the response.
proc artistInfo(fm: LastFM; artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getInfo. Returns the JsonNode of the contents of the response.
proc searchArtists(fm: LastFM; artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.search. Returns the JsonNode of the contents of the response.
proc similarArtists(fm: LastFM; artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getSimilar. Currently missing the optional mbid field. However, core functionality is working. Returns the JsonNode of the contents of the response.
proc artistTags(fm: LastFM; artist, user: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getTags. This version of the function may be used for both unauthenticated and authenticated sessions, and thus requires that a user parameter be specified. Currently missing the optional mbid field. However, core functionality is working. Returns the JsonNode of the contents of the response.
proc artistTags(fm: LastFMSession; artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getTags. This version of the function can only be used with an authenticated Last.FM session. Currently missing the optional mbid field. Returns the JsonNode of the contents of the response.
proc artistTopTags(fm: LastFM; artist: string; autocorrect = on): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getTopTags. Currently missing the optional mbid field. Returns the JsonNode of the contents of the response.
proc artistTopTracks(fm: LastFM; artist: string; autocorrect = on; page = 1; limit = 50): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getTopTracks. Currently missing the optional mbid field. Returns the JsonNode of the contents of the response.
proc artistTopAlbums(fm: LastFM; artist: string; autocorrect = on; page = 1; limit = 50): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.getTopAlbums. Currently missing the optional mbid field. Returns the JsonNode of the contents of the response.
proc artistAddTags(fm: LastFMSession; artist: string; tags: AtMost[10, string]): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.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 artistRemoveTag(fm: LastFMSession; artist, tag: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of Artist.removeTag. Returns the JsonNode of the contents of the response.