Hi there
As a start: I'm not a developer and have no programming skills - so please excuse :blink:
I'm trying to build a (very) simple photo channel, fetching a few images, that are available through a direct link (to a *,jpg) coming from webcams...
I analyzed the source of the existing photo channels, did some research in the forum and finally managed to have my photo channel displayed under my plex channels, displaying the photos as wished - so far so good.
The problem I'm encountering is that the photos are not refreshed at all - they are somewhere cached, I tried:
HTTP.CacheTime = CACHE_1MINUTE
HTTP.ClearCache()
HTTP.PreCache('...url...')
... but nothing...
I'm adding each photo to the MediaContainer like so:
dir = MediaContainer(noCache=True)title = ‘Gandegg1’
thumb = Resource.ContentsOfURLWithFallback(url=‘http://www.loetschental.ch/webcams/3/2.jpg’, fallback=‘icon-default.png’)
photo = Resource.ContentsOfURLWithFallback(url=‘http://www.loetschental.ch/webcams/3/2.jpg’)
dir.Append(PhotoItem(photo, title=title, thumb=thumb))
As the photos are of small size, i use the same source as thumb and as photo itself - I'm certain, that this is a bad hack and not elegant at all -_-
So... how to have all photos / links refreshed when the channel is loaded??
Thanks and cheers!