Wednesday, November 06, 2024

Re: www/qobuz-dl: new port with dependencies

On Wed, 06 Nov 2024 09:45:40 +0100,
Matthieu Herrb <matthieu@openbsd.org> wrote:
>
> when I try to feed it the download link for one of my purchases
> albums it crashes with the following backtrace:
>
> qobuz-dl dl https://www.qobuz.com/account/download/<redacted>
> Logging...
> Logged: OK
> Set max quality: 6 - 16 bit, 44.1kHz
>
> Traceback (most recent call last):
> File "/usr/local/bin/qobuz-dl", line 8, in <module>
> sys.exit(main())
> ^^^^^^
> File "/usr/local/lib/python3.11/site-packages/qobuz_dl/cli.py", line 176, in main
> _handle_commands(qobuz, arguments)
> File "/usr/local/lib/python3.11/site-packages/qobuz_dl/cli.py", line 83, in _handle_commands
> qobuz.download_list_of_urls(arguments.SOURCE)
> File "/usr/local/lib/python3.11/site-packages/qobuz_dl/core.py", line 180, in download_list_of_urls
> self.handle_url(url)
> File "/usr/local/lib/python3.11/site-packages/qobuz_dl/core.py", line 128, in handle_url
> url_type, item_id = get_url_info(url)
> ^^^^^^^^^^^^^^^^^
> File "/usr/local/lib/python3.11/site-packages/qobuz_dl/utils.py", line 190, in get_url_info
> return r.groups()
> ^^^^^^^^
> AttributeError: 'NoneType' object has no attribute 'groups'
>
> It's not clear to me if it's supposed to work for purchased albums or
> only for streaming accounts (which I don't have).
>

You need to go to https://play.qobuz.com/user/library/purchases/albums and
feed it links in format like: https://play.qobuz.com/album/skq9szwz3e5rb
where skq9szwz3e5rb is album ID.

If you haven't got streaming subscription and hadn't bougth tracks on that
album the tool will skip it as demo. But if you had bougth it, it will
download it.

--
wbr, Kirill

No comments:

Post a Comment