libMusicForge
Loading...
Searching...
No Matches
musicforge.providers.lastfm Namespace Reference

Last.fm artist and track statistics via the public API. More...

Classes

class  LastFmError
 Last.fm API request or response failed. More...
class  LastFmAdapter
 Read-only Last.fm statistics provider. More...

Functions

list[Statistic] _statistics (dict[str, Any] data, Identifier subject, dict[str, str] metrics)

Variables

str _API_URL = "https://ws.audioscrobbler.com/2.0/"

Detailed Description

Last.fm artist and track statistics via the public API.

The metrics are Last.fm scrobbles/listeners, never Spotify stream counts.

Function Documentation

◆ _statistics()

list[Statistic] musicforge.providers.lastfm._statistics ( dict[str, Any] data,
Identifier subject,
dict[str, str] metrics )
protected

Variable Documentation

◆ _API_URL

str musicforge.providers.lastfm._API_URL = "https://ws.audioscrobbler.com/2.0/"
protected