Kodi Community Forum
Sharing library across multiple computers outside the LAN - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Sharing library across multiple computers outside the LAN (/showthread.php?tid=379785)



Sharing library across multiple computers outside the LAN - gibsonlp - 2024-12-14

Hello.
I have a few kodi installations outside my main lan, currently accessing my storage via webdav, it works ok, but the library scan takes a long time, bootstrapping it takes forever (many hours).
I was wondering if there a way to "help" Kodi by storing some of the data on the storage server or anything that could get remote clients not working so hard. Maybe even running a headless kodi on the server itself just to create the library with all the metadata and have clients use it and store watch status locally. MySQL looks great but not very suitable without local access/vpn/security risk.

Also, I am really wondering how come it takes so long to scan, webdav was always slower than smb (although I don't understand why to be honest, the server responds within milliseconds) but it's either my new Google TV streamer that is extra slow or that I simply forgot how long it takes to bootstrap a library scan. Each TV show can take 10-20 minutes easily, some movies takes 2-3 seconds, some take 2-3 minutes. I downloaded a debug log and can send, but that's besides the point of my original question...

Thanks!


RE: Sharing library across multiple computers outside the LAN - izprtxqkft - 2024-12-15

(2024-12-14, 23:43)gibsonlp Wrote: Maybe even running a headless kodi on the server itself just to create the library with all the metadata and have clients use it and store watch status locally

probably wouldn't help, it's not likely the scraping taking very long as it's just a file listing
the slowest part of scraping is getting the artwork loaded which doesn't even happen during scan, it happens during browsing

------

best bet is disable extracting information and thumbnails from files
- https://kodi.wiki/view/Settings/Media/Videos#Extract_video_information_from_files


RE: Sharing library across multiple computers outside the LAN - gibsonlp - 2024-12-15

Thanks, so I am wondering how come it takes so long to scape, I did download some debug logs and can share them if anyone is interested at taking a look


RE: Sharing library across multiple computers outside the LAN - pkscout - 2024-12-15

During a scrape I'm pretty sure Kodi reads some information from the video file (like its duration, the audio/video codec, etc).  I don't know how much of the file Kodi has to be able to scan through to get that information, but depending on your upload speeds at your source and your download speed at your destination it could take a bit to get enough of the file to grab all that info.


RE: Sharing library across multiple computers outside the LAN - jbinkley60 - 2024-12-15

(2024-12-14, 23:43)gibsonlp Wrote: I have a few kodi installations outside my main lan, currently accessing my storage via webdav, it works ok, but the library scan takes a long time, bootstrapping it takes forever (many hours).
I was wondering if there a way to "help" Kodi by storing some of the data on the storage server or anything that could get remote clients not working so hard. Maybe even running a headless kodi on the server itself just to create the library with all the metadata and have clients use it and store watch status locally. MySQL looks great but not very suitable without local access/vpn/security risk.

A Kodi sharing solution where the media, central database and scraping are all local to the server and only artwork, metadata and streaming of the media is sent to the clients is likely a better option to address the issues you are seeing.  This is exactly how online streaming operates.


Thanks,

Jeff
.


RE: Sharing library across multiple computers outside the LAN - gibsonlp - 2024-12-15

Thanks! I'll check it out!


RE: Sharing library across multiple computers outside the LAN - CrystalP - 2024-12-15

Maybe path substitution can help, though I never tried it in such a situation.
Create the library with local path and substitute later with remote path (or vice versa)