WIP Media importing and library integration (UPnP, Emby, Plex, ...)
(2022-01-07, 02:24)LongMan Wrote: @psrkallez06,
The easiest thing may be just to rename the video database and re-import. The import process is pretty quick so you should up and running again quite quickly.
He asked previously why we are not concerned about the library cleaning feature> The short answer is, most of us are hoarders so there is nothing to clean.  Wink   We just get another or a bigger hard drive.
BTW why are you having so many broken links? Are you removing that many files from your server?

With regards to the fix, i beg you to just be patient. Usually errors are fixed pretty quickly. However, we just went through a season where one's free time becomes family and friends' time. After that we need to catch up on our normal task before we can find some more free time. So hold on a little bit longer.

Cheers,
LongMan

A potential suggestion here is to create a full sync option which will sync the Kodi DB to the uPNP server DB.  I ran into this issue with my Mezzmo uPNP server Kodi addon.  What I did to resolve was create a daily sync process which removes all existing uPNP server data in the Kodi DB (Mezzmo in my case) and then does a full sync with the uPNP server.  This eliminates all old stuff in Kodi which may have been deleted on the uPNP server.  Unfortunately I haven't seen a uPNP server yet which has a query like, "tell me everything which has been deleted in the last 24 hours or similar".  If so, it could just be queried and the associated records removed from the Kodi DB. 

The sync service process runs once a day between midnight and 6AM and checks to ensure a video isn't playing before running, to minimize resource usage.  I also have an on demand user option where the user can force a full resync if they don't want to wait till the daily process.  This is in addition to the hourly sync which catches new things getting added to the uPNP server.  I found this strategy works well and avoids deleting the database and similar.  I used to have the same challenge prior to implementing this approach. 

Here's a sample of the daily sync logs so the user can monitor what is going on.  I also write these logs to a separate database where the user can query via the addon GUI vs. going into the Kodi.log file:

2022-01-08 00:56:13.572 T:946      INFO <general>: Mezzmo sync beginning.
2022-01-08 00:56:13.584 T:946      INFO <general>: Mezzmo daily sync process flag set.
2022-01-08 00:56:14.688 T:946      INFO <general>: Kodi database Mezzmo data cleared.
2022-01-08 00:56:14.749 T:946      INFO <general>: Mezzmo duplicate logging is enabled.
2022-01-08 00:56:18.954 T:946      INFO <general>: Mezzmo checkDBpath parent path added: 1 http://192.168.0.34:53168/
2022-01-08 00:57:41.103 T:946      INFO <general>: Mezzmo total Kodi DB record count: 15899
2022-01-08 00:57:41.109 T:946      INFO <general>: Mezzmo total Mezzmo record count: 16178
2022-01-08 00:57:41.114 T:946      INFO <general>: Mezzmo total Live Channels count: 0
2022-01-08 00:57:41.119 T:946      INFO <general>: Mezzmo total nosync videos count: 279
2022-01-08 00:57:42.057 T:946      INFO <general>: Mezzmo database reindex and vacuum complete.
2022-01-08 00:57:42.072 T:946      INFO <general>: Mezzmo sync completed. 16178 videos in 1m 28s checked.
2022-01-08 00:57:42.083 T:946      INFO <general>: Mezzmo sync setting is: Newest
2022-01-08 00:57:42.091 T:946      INFO <general>: Mezzmo performance logging is enabled.

Maybe some of this can help with ideas.

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply


Messages In This Thread
Unexpected Behaviour - by LongMan - 2015-04-20, 23:53
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - by jbinkley60 - 2022-01-09, 00:39
20.2 Generic Builds - by LongMan - 2023-07-20, 04:49
Logout Mark Read Team Forum Stats Members Help
Media importing and library integration (UPnP, Emby, Plex, ...)10