In depth topics
Base class for supported services.
Recognize a share link and return its canonical representation.
uri (str) – A URI like “https://tidal.com/browse/album/157273956”.
The canonical URI or None if not recognized.
Return the service number.
A number identifying the supported music service.
Magic prefix/key/class values for each share type.
Extract the share type and encoded URI from a share link.
The shared type, like “album” or “track”.
encoded_uri: An escaped URI with a service-specific format.
Spotify share class.
Spotify US share class.
TIDAL share class.
Deezer share class.
Apple Music share class.
A SoCo plugin for playing music service share links.
Initialize the plugin.
Human-readable name of the plugin
bool: Is the URI for a supported music service.
Add a Spotify/Tidal/… item to the queue.
This is similar to soco.add_uri_to_queue() but will work with
music service share links that do not directly point to sound
uri (str) – A URI like “spotify:album:6wiUBliPe76YAVpNEdidpY”.
position (int) – The index (1-based) at which the URI should be
added. Default is 0 (add URI at the end of the queue).
as_next (bool) – Whether this URI should be played as the next
track in shuffle mode. This only works if “play_mode=SHUFFLE”.
The index of the new item in the queue.