digitalec / deemon

Monitor specified artists for new releases
GNU General Public License v3.0
174 stars 15 forks source link

download playlist by URL is broken #95

Closed ahurtaud closed 5 months ago

ahurtaud commented 1 year ago

Hello,

I am trying to download playlist by url and got a python exception. I am using the ghcr.io/digitalec/deemon:latest docker image.

logs ```bash deemon download -u "https://www.deezer.com/fr/playlist/1363560485" Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/app/deemon/__main__.py", line 9, in main() File "/app/deemon/__main__.py", line 5, in main cli.run() File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/app/deemon/cli.py", line 183, in download_command dl.download(artists, artist_ids, album_ids, urls, artist_file, track_file, album_file, track_ids, monitored=monitored) File "/app/deemon/cmd/download.py", line 482, in download process_playlist_by_id(eid) File "/app/deemon/cmd/download.py", line 351, in process_playlist_by_id self.queue_list.append(QueueItem(playlist=playlist_api)) File "/app/deemon/cmd/download.py", line 74, in __init__ self.url = playlist["url"] KeyError: 'url' Verifying ARL, please wait... [!] Queueing releases, this might take awhile... ```

I have check quickly and to me, the issue is: The playlsit object has an link attribute instead of url to download

MidnightAnnie commented 9 months ago

Also getting this same issue on windows.

and its only the download --url as it has no issues with downloading when its monitored