Posts: 815
Joined: Nov 2008
Reputation:
9
I'm using XBMC to browse PlayOn videos via the upnp:// protocol. Somtimes the content inside of the directories is not up to date. I'm trying to determine if this is a problem with PlayOn or with XBMC.
Does XBMC ever cache directory listings? And if so, is there any way to disable or tune the caching?
Thanks,
BradVido88
Posts: 815
Joined: Nov 2008
Reputation:
9
OK, so I've been able to answer my own question. I have seen that xbmc does cache the directory listing. I tested this by looking at the same directory before and after a restart of XBMC, noticing that after I restart, I get new content in my upnp:// listings from PlayOn.
I've searched the wiki and looked at all the advancedsettings.xml settings, but I have not seen any way to disable this.
Does anyone know of a way to fix this? Or any more details about if the cache expires after some time?
I do not want to have to restart XBMC every time I want to see new content.
Thanks,
BradVido
Posts: 26,215
Joined: Oct 2003
Reputation:
187
By the looks of it the caching is being done internally to the UPnP lib (platinum), as it specifically disables XBMC's caching stage.
I'll drop elupus a line and see whether he has any insights.
Cheers,
Jonathan
Posts: 3,805
Joined: Mar 2004
Reputation:
3
elupus
Team-XBMC Developer
Posts: 3,805
It's done internally. And as far as i know it subscribes to a change notification from the UPnP server. So if it changes a container it is supposed to notify xbmc that this has happened.
Posts: 3,805
Joined: Mar 2004
Reputation:
3
elupus
Team-XBMC Developer
Posts: 3,805
To clearify.. xbmc subscribes to a change notification in playon for a container it has listed. If this container changes, playon should notify us and we will evict the cache.
I don't think it's properly hooked up yet to actually refresh what is currently viewed.
Posts: 54
Joined: Jan 2008
Reputation:
1
I'd like to add to this thread and find out if there are any developments. I use a upnp server on my NAS (Netgear ReadyNAS Duo) mostly for pictures and music. I can also confirm that XBMC is not refreshing the directory listings for pictures after new pictures are added. Is there a way to force XBMC to reload the directory?
Posts: 31,445
Joined: Jan 2011
I think there's some talk of replacing platinum (what we use for UPnP) with something else, as there are a couple of issues with it. The updating of UPnP listings even effects XBMC to XBMC UPnP sharing sometimes.
I wonder if some kind of force refresh action/button could be used in the short run, or if that would be too much work. Like you said, having to reboot XBMC/Kodi to refresh the listings is a pain in the butt :)
Posts: 97
Joined: Mar 2012
Reputation:
0
+1
Running Raspberry Pi with Kodi on one side with an Kodi main server with all the content and get the same behavior from the beginning that I had this setup.
Have been running like this for the last 3-4 years and it's the only pain I still have with UPnP and Kodi. Everything else work like a charm.
Have been thinking to look into the code to see if one can do a timer based refresh of the cache but juts haven't had time to do that.
Posts: 2
Joined: Oct 2016
Reputation:
0
I have the same issue with exactly the same setup: Kodi on Raspberry Pi as media center and a Serviio remote share. Changes on serviio are not reflected on Kodi. Nobody fixed this issue in 5 years?
Posts: 11
Joined: Nov 2020
Reputation:
0
Skeeve
Junior Member
Posts: 11
2021 and the issue still persist.