I have written a few scanner agents to handle my own custom media (feeds from security cameras, recorded school classes, photography courses from 5daydeals, etc).
All the data for them is stored locally in the system in json, with the posters as accompanying jpeg images files. Everything works well initially; things auto-match and everything is pretty. I’m going directly to the file; it isn’t coming from the web:
data = Core.storage.load(posterFile)
if data:
metadata.posters[posterFile] = Proxy.Media(data)
However, after a month or two, the posters start to disappear. A simple refresh metadata loads it back up, but it’s annoying (and time consuming) to do manually.
I assume the cache for the poster is expiring, but I’m not clear on why it isn’t auto-refreshing like my other scanners seem to.
Any ideas what I’ve done wrong (and how I could fix it)? Does the auto-refresh assume that the poster URL is a web url (it isn’t in this case; it’s a direct reference to the physical file on the machine)? Is there a way to say this file is local and not to expire it (like seems to happen when I upload a local file)?