WIP Media importing and library integration (UPnP, Emby, Plex, ...) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: WIP Media importing and library integration (UPnP, Emby, Plex, ...) (/showthread.php?tid=224794) |
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-08 Ah I think I might know what the problem is. Can you try installing the mediaimporter.emby add-on from the ZIP file? Because with the pre-installed add-on Kodi does not properly install the necessary dependencies. You can
But it's still odd because I don't know how the "Test connection" button works without the "requests" library being installed And it also doesn't really explain the crash yet. But one step at a time. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-08 It is showing all dependencies installed. The version are listed below
Edit: If you think the problem is on the python side, maybe we could ask one of the guys who help out in the addon development forum, @Roman_V_M, @enen92 or @ronie to take a look. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-08 That's odd. In the log files you uploaded together with the crash dump files none of these libraries appear in the list of installed add-ons and the following errors are listed: Code: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- Code: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-09 Oh, that makes sense. That was when I first installed it and realized that the addons were included and activated the emby one. After activating and having it crash, I installed from the the zip file. Now the machine with fresh windows install does the same thing as the old one. It allows manual entry and setting up of the provider and imports but it does not sync. It also crashes if I choose the user from the list. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-09 The auto discovery works to show the servers. I ended setting up Emby on 2 LibreELEC boxes and they all show up. However, as I stated before, kodi crashes whenever I try to select a user from the list. It allows manual entry but does not sync. It actually pops up the updating graphic as soon as it starts but then shows an error and 0%. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-09 Can you upload a debug log from when you try to synchronize one of the imports? I now also installed the test build and setup a new / fresh portable Kodi installation and everything works perfectly fine for me. So there must be something different in your Emby setup that I'm missing. One difference certainly is that I'm running Emby on the same machine as Kodi. I also never tested HTTPS but from your database it looks like you use HTTP as well. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-09 It attempts to sync from two servers then gives the error https://drive.google.com/file/d/1w4oM9O1sH5O3CRDekqkkwdKvNSAjcolv/view?usp=sharing RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-09 Thanks that helped narrow down the problem. There were two places in the add-on which worked fine when using a specific user (which crashes for you in the settings) and didn't work when manually specifying the username. Please try again with https://www.dropbox.com/s/qr58iadjfeer1va/mediaimporter.emby.zip?dl=1. I've also added extensive debug logging to the callback which tries to get the list of users from Emby in case the crash is caused somewhere in the python code. If not I'll have to add more debug logging to the Kodi infrastructure and post another test build. Thanks for your support. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-09 Some success. It is syncing now. That's good news. However, it still crashes when I try to select the user. The logs for the one that crashes is here. BTW Kodi and Emby are running on the same machine in this case, ie the fresh windows install I set up for testing. https://drive.google.com/file/d/1VN2Mjuj2o2vEJF4Bj7uCwll62IzmKb9A/view?usp=sharing The one on my desktop is still syncing. It is connected to my main emby server so it could take a while. I will provide the logs when it is finished Cheers, LongMan Edit: Here is the logs for the one that synced. After the sync completed, I tried to import an individual library/view for tv show and it crashed. logs below. https://drive.google.com/file/d/1aXAbeqv4sXnOSLUB3et2jR8rtkvHpVgp/view?usp=sharing RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-09 Thanks for the logs. I've seen / figured out the following things:
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-09 I've started a new test build with additional debug logging in the settings callback handler: https://jenkins.kodi.tv/job/WIN-64/11304/. See http://mirrors.kodi.tv/test-builds/windows/win64/KodiSetup-20191209-d6e86693-media_import_rebase_20191003-x64.exe. Furthermore I've gotten rid of one unnecessary call to the settings handlers which might already improve things. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-09 I am not sure if it is by design but this build crashes almost immediately after startup. https://drive.google.com/file/d/19z8gy_5eUaevR7lm6p0MyIP9Hh-1oZf1/view?usp=sharing RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2019-12-10 Hm something went wrong with that build. It doesn't contain the mediaimporter.emby and mediaimporter.plex add-ons. I've started a new one at https://jenkins.kodi.tv/job/WIN-64/11306/. Hopefully this one works better. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Norin_Radd - 2019-12-10 @Montellese How do i test this? i tried to install the addon and there's no option for configuration, how do i set it up so it imports from my server? do i need to install your fork of kodi. I have a sonybravia tv with android. I want to test this because nothing works properly with plex and emby or jellyfin cause they mess with kodi db as i have been told. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2019-12-10 Yes. You have to install build that Montellese has linked here. then,
Hope that helps. Cheers, LongMan |