A small Python tool that fetches a Qobuz playlist and saves it as an XSPF file that Strawberry Music Player can import.
The tool reuses the Qobuz login already stored by Strawberry. It supports both regular Strawberry installations and Flatpak installations.
Requires Python 3.10 or newer and an active Qobuz login in Strawberry.
python main.py <playlist_id>This creates playlist.xspf in the current directory. The command can be run
directly from the project directory without installation. A Qobuz URL can also
be used:
python main.py https://open.qobuz.com/playlist/<playlist_id>Choose a different filename with --output:
python main.py <playlist_id> --output "My playlist.xspf"Then import the XSPF file into Strawberry.
python -m pip install -e .
qobuz-to-strawberry <playlist_id>If the Strawberry configuration is not in a default location, specify it explicitly:
qobuz-to-strawberry <playlist_id> --config ~/.config/strawberry/strawberry.confQOBUZ_APP_ID and QOBUZ_USER_AUTH_TOKEN can also be provided as environment
variables.
python -m unittest discover -s tests -v