(2014-08-30, 19:05)phate89 Wrote: The path is always upnp and it's a mistake to think you need a rescrape. Kodi instances will communicate metadata changes keeping themselves updated.
This is good, once you push metadata it can be inserted in the DB
(2014-08-30, 19:05)phate89 Wrote: So no rescraping problems, updated info etc also duplicated poster, cover etc etc is a false problem because kodi always cache them. Actually with upnp you can share the changed cover even if it's a local file, impossible to do with a shared library.
Cache is local in Kodi so you will have multiple copies of the poster, etc...
Is not correct is impossible to do it with a shared library, you just have to save it with the asset itself
(2014-08-30, 19:05)phate89 Wrote: Of course there are sync problems but not impossible to solve. I prefer a shared db too (it's what I use) but this is still a very advanced and impressive concept, Way more advanced and dynamic and if they both live it's going to b great but that's not the point.
I agree with that, only I do not think a lot of people will use it. Having to have multiple PC on to share libraries is a nuisance... everyone I know does have a NAS.
(2014-08-30, 19:05)phate89 Wrote: How can you support this scenario without even a "sources" table? How can kodi knows if it has to get the updates from a specific instance and what media to hide without a source table connected to the media?
It's very simple:
in Path table you put the Source
in filename you put the filename.
In the end it's exactly what it it
the "path" to the asset is your UPnP Source
The model it's completely abstracted from physical file or location. Obviously at code level you need to be able to act accordingly to a physical file, to a UPnP path, to an HTTP url, etc...
Consider it from this perspective: In Kodi an asset is an asset, independently from where it is physically stored.
(2014-08-30, 20:02)Tolriq Wrote: Keep in mind also that the way to access media can be dual as a file might be accessible by one instance and not another one and then should access the media from the first instance (Either automatic fallback or configurable per source).
Or include a way to sync sources with password but with tons of security problems.
About scraping you also need to keep in mind some actual limitation / configuration of XBMC. Images are cached at some defined sizes depending on lots of things.
And since each client could need different size in it's cache the main source either needs to store the best quality one and the local cache for it's need. As sending a low resolution image to be upscaled on the client would just be awful...
There's really a lot of things to think and as Montellese said it needs to be possible to do it step by step. (This image quality problem is already present in current XBMC UPnP sharing from an rpi for example, don't know if something is planned about it).
To have UPnP work well is a HUGE amount of work and troubles, security, circular references (direct and multiple ways, consider you have 3 PC with Kodi each one will have K1, K2, K3 library. Now K1 will import K2, K2 import K3, K3 imports K1.... BUM!)
Not saying it should not be done but do consider not even Microsoft, Samsung, LG, Google, Netflix got it working right...
UPnP has been there for years and it's usage is very limited...
Maybe is better to focus efforts to get DB and Library management working very well as it will impact all users... not just a few.
Sharing the folder and a shared DB achieves the same functionality and is far easier.
IF thumbs are small enough they can be saved in the DB as Objects... thus no duplicates at all!
Anyway as future reference note that once the new DB is in place a Kodi istance can connect to multiple DBs
on multiple NAS/PC if you want.
It's just a code problem... not anymore a data issue