Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listenbrainz broken - AttributeError #5459

Open
arsaboo opened this issue Oct 13, 2024 · 0 comments · May be fixed by #5480
Open

Listenbrainz broken - AttributeError #5459

arsaboo opened this issue Oct 13, 2024 · 0 comments · May be fixed by #5480

Comments

@arsaboo
Copy link
Contributor

arsaboo commented Oct 13, 2024

Listenbrainz is currently broken. I get this error:

Traceback (most recent call last):
  File "/home/arsaboo/.local/bin/beet", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beets/ui/__init__.py", line 1862, in main
    _raw_main(args)
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beets/ui/__init__.py", line 1849, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beetsplug/plexsync.py", line 342, in func_playlist_import
    self._plex_import_playlist(opts.playlist, opts.url, opts.listenbrainz)
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beetsplug/plexsync.py", line 947, in _plex_import_playlist
    weekly_jams = lb.get_weekly_jams()
                  ^^^^^^^^^^^^^^^^^^^^
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beetsplug/listenbrainz.py", line 258, in get_weekly_jams
    return self.get_weekly_playlist(1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beetsplug/listenbrainz.py", line 250, in get_weekly_playlist
    return self.get_tracks_from_playlist(playlist)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/arsaboo/.local/lib/python3.12/site-packages/beetsplug/listenbrainz.py", line 205, in get_tracks_from_playlist
    "identifier": track.get("identifier").split("/")[-1],
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'split'

I will submit a PR soon to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant