Skip to content

Podcasts break playlist sync #24

@Qupci

Description

@Qupci

Tried with up to date ARL, but the result is the same. The cause of the problem might lay in the API change on the Deezer side, but I don't know.

Here is the console output:

(base) C:\Users\Qupci>spotify_sync run auto --profile try1
[2023-06-10 23:52:50,380] INFO      SpotifySync      : Loading config from profile: try1
[2023-06-10 23:52:50,381] INFO      SpotifySync      : Script started with auto command
[2023-06-10 23:52:53,791] INFO      SpotifyService   : Fetching liked songs
[2023-06-10 23:53:13,376] INFO      SpotifyService   : Added 18 new liked song(s) from Spotify (cached:2662)
[2023-06-10 23:53:13,377] INFO      SpotifyService   : Fetching playlist songs
Traceback (most recent call last):
  File "D:\SOFTWARE\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\SOFTWARE\Anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\Scripts\spotify_sync.exe\__main__.py", line 7, in <module>
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\__main__.py", line 48, in auto
    app.auto()
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\cli.py", line 57, in auto
    spotify_svc.sync()
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\spotify_.py", line 37, in sync
    liked, playlists = self._merge_playlist_songs(liked)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\spotify_.py", line 98, in _merge_playlist_songs
    playlist_songs = self._get_all_playlist_songs(playlists)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\spotify_.py", line 72, in _get_all_playlist_songs
    return self.paginator.get_songs_from_playlists(playlists=playlists)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\spotify_.py", line 184, in get_songs_from_playlists
    return self._to_spotify_song(response)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\spotify_.py", line 262, in _to_spotify_song
    s.from_api(api_s)
  File "C:\Users\Qupci\AppData\Roaming\Python\Python39\site-packages\spotify_sync\dataclasses.py", line 107, in from_api
    song["track"]["artists"][0]["name"]
KeyError: 'artists'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions