Skip to content

Error: Sync failed: 'Tag' object has no attribute #1

@m9cy884mv6-hash

Description

@m9cy884mv6-hash

This may be a silly error that is easy to solve, i keep getting the following error when the script starts fetching the playlists.

Any idea where to start looking for a solution?


Fetching playlists from Plex...
  Found playlist: All Music (15936 tracks)
✗ Sync failed: 'Tag' object has no attribute 'playlistType'
Traceback (most recent call last):
  File "/Users/joshuo/plexpod/plex_ipod_sync/sync/engine.py", line 91, in sync
    playlists, all_tracks = self._sync_full_library()
  File "/Users/joshuo/plexpod/plex_ipod_sync/sync/engine.py", line 268, in _sync_full_library
    playlists = self.plex_client.get_all_playlists()
  File "/Users/joshuo/plexpod/plex_ipod_sync/plex/client.py", line 88, in get_all_playlists
    if playlist.playlistType == 'audio':
AttributeError: 'Tag' object has no attribute 'playlistType'

If i comment out the if statement to filter on audio playlists only in the client.py file, i get a different 'Tag' error:

Fetching playlists from Plex...
  Found playlist: All Music (15936 tracks)
✗ Sync failed: 'Tag' object has no attribute 'title'
Traceback (most recent call last):
  File "/Users/joshuo/plexpod/plex_ipod_sync/sync/engine.py", line 91, in sync
    playlists, all_tracks = self._sync_full_library()
  File "/Users/joshuo/plexpod/plex_ipod_sync/sync/engine.py", line 268, in _sync_full_library
    playlists = self.plex_client.get_all_playlists()
  File "/Users/joshuo/plexpod/plex_ipod_sync/plex/client.py", line 88, in get_all_playlists
    sync_console.print_info(f"  Found playlist: {playlist.title} ({len(tracks)} tracks)", muted=True)
AttributeError: 'Tag' object has no attribute 'title'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions