XDGFX / ultrasonics

Sync music playlists between all your music services. Do more with your music.
GNU General Public License v3.0
218 stars 18 forks source link

Internal Server Error 500 for Plex #22

Closed jimcampbell100 closed 3 years ago

jimcampbell100 commented 3 years ago

Hi,

I am setup and running in a docker container on an Ubuntu host. I created the applet to sync a local m3u (in Windows format) to Plex (on an Ubuntu host). I get the following error...any advice on how to debug this? I'm trying to sync one local m3u to Plex ("Test from MM"), where there are about a dozen existing playlists.

For what it is worth, I tried using your other script, which looked pretty promising. It was able to upload the local playlist I had, but unfortunately the playlists already on Plex were all duplicated. Rather than try to debug that, I moved over to your more recent work.

Thanks for nay help!!

2021-03-24 19:45:35,813 - plugins - INFO - Running applet: 0efde40c-8cd9-11eb-a5c6-0242ac120011 (plugins.py:251)

2021-03-24 19:45:35,817 - plugins - DEBUG - Running plugin local playlists v0.3 (plugins.py:158)

2021-03-24 19:45:35,819 - šŸŽ§ local playlists - DEBUG - ultrasonics paths and local playlist paths do not use the same separators! (up_local playlists.py:203)

2021-03-24 19:45:35,846 - plugins - DEBUG - Running plugin plex v0.1 (plugins.py:158)

2021-03-24 19:45:35,849 - šŸŽ§ plex - INFO - Requesting playlists from endpoint: http://192.168.0.111:32400/playlists/?X-Plex-Token=*** (up_plex.py:179)

2021-03-24 19:45:35,886 - šŸŽ§ plex - INFO - Found 15 playlists. (up_plex.py:195)

2021-03-24 19:45:35,887 - šŸŽ§ plex - INFO - Creating temporary playlists to send to Plex. (up_plex.py:239)

2021-03-24 19:45:35,889 - šŸŽ§ plex - INFO - Updating playlist: Test From MM (up_plex.py:243)

2021-03-24 19:45:35,914 - šŸŽ§ plex - DEBUG - Internal Server Error

500 Internal Server Error

(up_plex.py:298)

2021-03-24 19:45:36,018 - plugins - INFO - Applet 0efde40c-8cd9-11eb-a5c6-0242ac120011 completed successfully in 0:00:00.204566 (plugins.py:296)

2021-03-24 19:45:36,635 - database - INFO - Applet lastrun updated (database.py:377)

XDGFX commented 3 years ago

Hi! Sorry for such a delayed reply. I've had a lot going on with work and uni - I do plan on continuing to support ultrasonics when I have time :)

Did you get any further with this? Does it happen with all playlists or just this one? I would recommend trying to upload the m3u manually with the api. Someone's posted a good looking guide here.

Feel free to also attach the playlist here if it's the only one causing issues, I'll try test it myself at some point but it might be quicker for you to try it manually ;)

For reference concerning the other script, PPP, I think that's expected behaviour that it would 'duplicate' playlists the first time. Plex doesn't treat playlists with the same name as the same playlist (there's some underlying UUID to identify them). When you sync the first time it treats them as separate playlists and creates them if they don't exist. Future syncs should match with the creates ones and shouldn't generate any more duplicates.

jimcampbell100 commented 3 years ago

No, sorry, I didn't make any progress on it. I gave up, and ended up using the API directly to upload the playlists, in a way very similar to the link you provided. Thanks!