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 - 2020-01-23 (2020-01-22, 19:32)sualfred Wrote: @MontelleseThanks for the feedback. From your log file I see the following:
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2020-01-23
Please use the pre-installed media import repository to install / update the media importer add-ons from there. This way you should get all necessary dependencies. ATTENTION: If you were running a previous test-build delete your MyVideosxXX.db. Changelog
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2020-01-23 (2020-01-22, 19:32)sualfred Wrote: @MontelleseI've tested it again on my setup and apart from confirming (and fixing) the crash everything works perfectly fine here. Playback checkins show up immediately on the Emby server and playback metadata is updated on the Emby server when the video is played from a widget... RE: Media importing and library integration (UPnP, Emby, Plex, ...) - sualfred - 2020-01-23 Started from scratch and now it's working. Weird. Edit: @Montellese Problem is back. It was working for movies. Then I've started the sync of my TV shows and went eating and let my PC idle for 30 minutes. When I was back I've started a episode playback from a widget -> no progress reporting to the server. Doesn't matter if playback of a movie/episode has been started from widgets or from library. But what I've noticed on the server is... that items were changed to inprogress after I tried a few other ones. Example: 1. Movie#1 2. Stopped movie#1 3. Movie#2 3. Stopped movie#2 4. Movie#3 5. Stopped movie#3 -> Movie#1 got updated on the server and a message appeared "User has stopped Movie#1" but I saw no ongoing playback while I was watching it. Log: https://paste.ubuntu.com/p/WJFXydmS8X/ RE: Media importing and library integration (UPnP, Emby, Plex, ...) - sualfred - 2020-01-23 Ok.. it IS reporting to the server. After exactly 29-30s of a playback. No matter if starting from the beginning or resuming an item. If I interupt the playback before it's correctly reporting -> hicups and semi-async. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2020-01-23 (2020-01-23, 20:01)sualfred Wrote: Ok.. it IS reporting to the server. After exactly 29-30s of a playback. No matter if starting from the beginning or resuming an item. If I interupt the playback before it's correctly reporting -> hicups and semi-async.That matches what I saw in your original log file. The question is why it is taking so long for the playback callbacks to be executed. On my dev system it takes approximately half a second or less. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - sualfred - 2020-01-23 It was this fast after I just synced movies. The issue reappeared after I've added my TV shows (~6500 episodes). It is somehow related. Once I remove my TV show import -> issue gone RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2020-01-24 (2020-01-23, 22:33)sualfred Wrote: It was this fast after I just synced movies. The issue reappeared after I've added my TV shows (~6500 episodes). It is somehow related. Once I remove my TV show import -> issue goneIs the import for TV shows running while you play your movies or did you finish importing TV shows and then started playing movies? RE: Media importing and library integration (UPnP, Emby, Plex, ...) - sualfred - 2020-01-24 I waited until the import was done. Also restarted Kodi and waited for the sync. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2020-01-24 (2020-01-24, 07:09)sualfred Wrote: I waited until the import was done. Also restarted Kodi and waited for the sync.OK thanks for the feedback. I think I know what the issue is. Right now when playback starts the add-on receives the player callbacks and it has to figure out if the item being played is an imported item or not. Right now there's no easy way to do this in the python API so the add-on has to retrieve ALL imported items and go through them to check if the one being played is imported and from which media provider. In my test library with a hundred or so movies and a few hundred episodes that's pretty fast. But @enen92 has already pointed out that it might be very slow. I guess this is what's causing the long delay in your setup. I'll add some more methods to the python API to be able to speed up this process and will let you know once it's available for testing. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - sualfred - 2020-01-24 Sounds like an explanation. Wrote you in Slack if you need a test server with such an amount of library items. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2020-01-24 (2020-01-24, 11:31)sualfred Wrote: Sounds like an explanation. Wrote you in Slack if you need a test server with such an amount of library items. I have access to Keith's server but it has far too many items in it. So one with a reasonably large library would be great. RE: Media importing and library integration (UPnP, Emby, Plex, ...) - sualfred - 2020-01-24 sent you details on slack RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2020-01-26 I know the story but I will post his comment. bgx from the Emby forum wrote Quote:Would love to see music as import also... ;-) RE: Media importing and library integration (UPnP, Emby, Plex, ...) - bg_x - 2020-01-26 Hi, after playing a bit around I totally love this way of integration in kodi. As workaround for music I had add the emby music library as dlna into kodi. Keep up the fantastic work. When you need something to test let me know. Before I was testing with angelblue05... I just installed it on my production system and absolutely love it. Thx. |