Closed Drazzilb08 closed 3 years ago
Not too sure what the issue is (with that not very informative error message from Plex...). As I've mentioned in #30 could you please download the latest https://github.com/XDGFX/ultrasonics/tree/1.2.0 branch, try syncing with the new 'plex beta' plugin instead, and let me know how you get on?
This uses a proper plex-python api so it should be more reliable!
Has that been pushed to docker (I didn't see it to be)? As that's the way I have this currently installed.
Edit: I've installed it on the host. Everything is running smoothly so far.
Any idea when you'd be able to push this update to your container on docker?
Seems that when it comes across a playlist in which you have ZERO songs for it spits this out (could be wrong about this)
[96m2021-10-23 22:16:13,876 - 🎧 plex beta - INFO - Found 0 songs in Plex out of 50 songs supplied (up_plex beta.py:212)[0m
[96m2021-10-23 22:16:13,876 - 🎧 plex beta - INFO - Creating playlist: Feelin' Myself (up_plex beta.py:218)[0m
Processing playlists: 16%|█▌ | 13/82 [06:23<33:54, 29.49s/it]
[31m2021-10-23 22:16:13,876 - plugins - ERROR - Must include items to add when creating new playlist. (plugins.py:291)[0m
Traceback (most recent call last):
File "/mnt/user/data/scripts/ultrasonics/ultrasonics/plugins.py", line 285, in applet_run
plugin_run(*get_info(plugin), component="outputs",
File "/mnt/user/data/scripts/ultrasonics/ultrasonics/plugins.py", line 162, in plugin_run
response = found_plugins[name].run(
File "/mnt/user/data/scripts/ultrasonics/ultrasonics/official_plugins/up_plex beta.py", line 219, in run
plex_playlist = plexapi.playlist.Playlist.create(
File "/mnt/user/data/scripts/env/lib64/python3.9/site-packages/plexapi/playlist.py", line 403, in create
return cls._create(server, title, items)
File "/mnt/user/data/scripts/env/lib64/python3.9/site-packages/plexapi/playlist.py", line 324, in _create
raise BadRequest('Must include items to add when creating new playlist.')
plexapi.exceptions.BadRequest: Must include items to add when creating new playlist.
[33m2021-10-23 22:16:13,920 - plugins - WARNING - Applet c846eae0-347b-11ec-bfed-ac1f6bec95ff failed in 0:06:43.215565 (plugins.py:299)[0m
If I remove the offending playlist on Spotify it will press past this point.
I've updated the Docker containers now - my bad, I had thought I had automated it ;)
It could be a good idea to catch the case where no songs are matched. It would be annoying if it took out a job with multiple playlists because of one bad one.
Opening a new issue in #36 to keep it clean :) Thanks for the heads up!
So I've installed ultrasonics via docker on my unraid server. I've set everything up, ultrasonics connects to my Spotify account, and connects to my Plex server. When I run the applet I receive this error:
which duplicates across all my Spotify playlists.
I've tested my plex URL + the token and I get a normal response
The run shows as successful but it is not, obviously
My docker setup:
I really want to use this app as it's exactly what I've been looking for. Just got this one issue.