Skip to main content

Module content

Module content 

Source
Expand description

Content API operations: search and browse for albums, artists, tracks, playlists.

Modules§

albums
Album search and browse operations.
artists
Artist search and browse operations.
bundle
Album download operations with concurrent track fetching and metadata embedding.
catalog
Catalog search: searches all content types simultaneously.
cover
Cover art fetching for tracks.
discography
Artist download operations.
mixtape
Playlist download operations.
persistence
Download file I/O helpers: partial file detection, stream-to-disk writing, cover art fetch.
playlists
Playlist search and browse operations.
stream
Track streaming URL resolution.
tracks
Track search, browse, and download operations.

Functions§

check_cancel
Checks the cancellation flag and returns Canceled if the download was cancelled.
fetch_with_cancel
Checks cancellation before and after an async fetch, discarding the fetch result on cancel.
get_by_id
Sends a get-by-ID request with an optional extra parameter.
paginated
Sends a paginated request by ID with limit and offset parameters.
push_pagination_params
Appends optional limit and offset pagination parameters to a params vector.
search
Sends a search request with query, limit, and offset parameters.