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

Spotify to Plex #31

Open
Raki72 opened this issue Oct 8, 2021 · 2 comments
Open

Spotify to Plex #31

Raki72 opened this issue Oct 8, 2021 · 2 comments

Comments

@Raki72
Copy link

Raki72 commented Oct 8, 2021

Hi,

I've built the environment according to the instructions. When starting app.py the web server comes up.

When setting up a new applet to sync from Spotify to Plex, the setup of Spotify works flawlessly. But when setting up the connection to my local Plex server, I receive the following error messages on the console:

(.venv) root@UNRAID:/mnt/user/appdata/ultrasonics# python3 app.py
2021-10-08 20:48:28,257 - database - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:28,272 - scheduler - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:28,274 - plugins - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,358 - webapp - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,450 - database - INFO - Database connection successful (database.py:84)
2021-10-08 20:48:31,489 - 🎧 custom file - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,490 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_custom file' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_custom file.py'> (plugins.py:90)
2021-10-08 20:48:31,661 - tools.fuzzymatch - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,668 - 🎧 deezer - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,668 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_deezer' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_deezer.py'> (plugins.py:90)
2021-10-08 20:48:31,684 - 🎧 lastfm - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,684 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_lastfm' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_lastfm.py'> (plugins.py:90)
2021-10-08 20:48:31,846 - tools.local_tags - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,847 - 🎧 local music database - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,848 - 🎧 local music database - DEBUG - Database file location: /mnt/user/appdata/ultrasonics/config/up_local music database/library.db (up_local music database.py:30)
2021-10-08 20:48:31,849 - 🎧 local music database - DEBUG - Supported extensions for this plugin include: ['.mp3', '.m4a'] (up_local music database.py:42)
2021-10-08 20:48:31,850 - 🎧 local music database - DEBUG - This plugin will automatically skip any files matching the following extensions: ['.jpg', '.png', '.bak', '.dat', '.lrc', '.lyrics', '.m3u', '.sfk', '.snap', '.temp', '.tmp', '.txt'] (up_local music database.py:48)
2021-10-08 20:48:31,850 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_local music database' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_local music database.py'> (plugins.py:90)
2021-10-08 20:48:31,859 - 🎧 local playlists - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,860 - 🎧 local playlists - INFO - Supported playlist extensions include: ['.m3u'] (up_local playlists.py:74)
2021-10-08 20:48:31,861 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_local playlists' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_local playlists.py'> (plugins.py:90)
2021-10-08 20:48:31,870 - 🎧 playlist merger - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,870 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_playlist merger' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_playlist merger.py'> (plugins.py:90)
2021-10-08 20:48:31,885 - 🎧 plex - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,886 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_plex' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_plex.py'> (plugins.py:90)
2021-10-08 20:48:31,899 - 🎧 rickroll - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,899 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_rickroll' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_rickroll.py'> (plugins.py:90)
2021-10-08 20:48:31,942 - 🎧 spotify mixer - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,942 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_spotify mixer' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_spotify mixer.py'> (plugins.py:90)
2021-10-08 20:48:31,952 - 🎧 spotify - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,953 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_spotify' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_spotify.py'> (plugins.py:90)
2021-10-08 20:48:31,962 - 🎧 system command - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,963 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_system command' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_system command.py'> (plugins.py:90)
2021-10-08 20:48:31,973 - 🎧 time trigger - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,974 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_time trigger' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_time trigger.py'> (plugins.py:90)
2021-10-08 20:48:31,984 - 🎧 webhook - DEBUG - LOG CREATED (logs.py:77)
2021-10-08 20:48:31,984 - plugins - INFO - Found plugin: <module 'ultrasonics.official_plugins.up_webhook' from '/mnt/user/appdata/ultrasonics/ultrasonics/official_plugins/up_webhook.py'> (plugins.py:90)
2021-10-08 20:48:32,001 - webapp - DEBUG - Starting webserver (webapp.py:28)
The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)
2021-10-08 20:49:04,438 - plugins - INFO - spotify does not have a test function. (plugins.py:177)
2021-10-08 20:49:16,845 - database - INFO - Applet database entry created (database.py:337)
2021-10-08 20:49:16,849 - scheduler - DEBUG - Submitted applet '5e848834-2868-11ec-a33f-003048cc780e' to thread pool (scheduler.py:45)
2021-10-08 20:49:16,858 - plugins - ERROR - No trigger is supplied for applet 5e848834-2868-11ec-a33f-003048cc780e - will not run automatically. (plugins.py:317)
2021-10-08 20:49:16,861 - scheduler - ERROR - (scheduler.py:53)
Traceback (most recent call last):
File "/mnt/user/appdata/ultrasonics/ultrasonics/scheduler.py", line 50, in ExecThread
plugins.applet_trigger_run(applet_id)
File "/mnt/user/appdata/ultrasonics/ultrasonics/plugins.py", line 319, in applet_trigger_run
raise Exception
Exception
2021-10-08 20:49:33,924 - plugins - INFO - spotify does not have a test function. (plugins.py:177)
2021-10-08 20:50:48,498 - 🎧 plex - DEBUG - Running settings test for plugin plex v0.1 (plugins.py:187)
2021-10-08 20:50:48,504 - 🎧 plex - DEBUG - Checking that Plex responds to API requests... (up_plex.py:310)
2021-10-08 20:50:48,518 - 🎧 plex - DEBUG - Test successful. (up_plex.py:317)
2021-10-08 20:50:48,519 - 🎧 plex - DEBUG - Testing music directories... (up_plex.py:322)
2021-10-08 20:50:48,520 - 🎧 plex - DEBUG - Plex and ultrasonics music paths detected successfully. (up_plex.py:324)
2021-10-08 20:50:48,521 - 🎧 plex - DEBUG - Checking permissions... (up_plex.py:329)
2021-10-08 20:50:48,525 - 🎧 plex - DEBUG - Successfully created and removed temporary ultrasonics sync directory. (up_plex.py:343)
2021-10-08 20:50:48,525 - 🎧 plex - INFO - Settings test successful. (up_plex.py:349)
[2021-10-08 20:50:48,526] ERROR in app: Exception on /configure_plugin [POST]
Traceback (most recent call last):
File "/mnt/user/appdata/ultrasonics/.venv/lib64/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/mnt/user/appdata/ultrasonics/.venv/lib64/python3.9/site-packages/flask/app.py", line 1953, in full_dispatch_request
return self.finalize_request(rv)
File "/mnt/user/appdata/ultrasonics/.venv/lib64/python3.9/site-packages/flask/app.py", line 1968, in finalize_request
response = self.make_response(rv)
File "/mnt/user/appdata/ultrasonics/.venv/lib64/python3.9/site-packages/flask/app.py", line 2097, in make_response
raise TypeError(
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.

Is it possible that this is an error in the source code? Please help!

Thanks!

@Raki72
Copy link
Author

Raki72 commented Oct 15, 2021

Any response?

@XDGFX
Copy link
Owner

XDGFX commented Oct 23, 2021

Hi, I've just replied in #30 with something similar - could you download the new https://github.com/XDGFX/ultrasonics/tree/1.2.0 branch, and try syncing with the new 'plex beta' plugin instead, and let me know how you get on? Hopefully some of the existing issues are fixed.

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

No branches or pull requests

2 participants