lejacobroy / Tidalrr

Self-hosted Tidal library sync
Apache License 2.0
33 stars 4 forks source link

Can't export to Plex #26

Open chmanie opened 3 months ago

chmanie commented 3 months ago

When trying to export to Plex, I'm getting this error:

Traceback (most recent call last):
  File "/app/runExportPlex.py", line 18, in <module>
    from tidalrr.database import getSettings, getTidalPlaylistTracks, updateTidalPlaylist, updateTidalTrack, updateTidalPlaylistTracksPlexUUID, getDownloadedTidalPlaylists
ImportError: cannot import name 'getTidalPlaylistTracks' from 'tidalrr.database' (/app/tidalrr/database/__init__.py)

I think it's because getTidalPlaylistTracks needs to be imported from tidalrr.database.playlists, like in other occurrences throughout the app. This is probably true for some other functions imported here.

lejacobroy commented 3 months ago

Yes I think you are on the right track. I've refactored the Plex export recently but didn't fully test.

styx-techno commented 1 month ago

is there an eta on the refactored code? would love to test the feature!