I'm working on a channel plugin that contains nested folders. I need to be able to update the content of a folder dynamically every time the folder is entered. Is it possible?
I've tried few things (based on examples and info I could find), but nothing works. Basically, I need
public Task<ChannelItemResult> GetChannelItems(InternalChannelItemQuery query, CancellationToken cancellationToken)
method to be called every time a user enters a folder.
IHasCacheKey public string GetCacheKey(string userId)
method and return random string. Does not help. Actually, I don't even see (in the Debugger) that this method gets called at all.
2. Many examples shows a use of
ISupportsLatestMedia Task<IEnumerable<ChannelItemInfo>> GetLatestMedia(ChannelLatestMediaSearch request, CancellationToken cancellationToken)
but the interface does not have this method anymore and I couldn't find definition of ChannelLatestMediaSearch anywhere. But, that's probably irrelevant to my issue anyway...
As there is absolutely no objects/interfaces documentations, I'd like to know if there is any way to have a folder content updated every time the folder is entered?
Edited by ZR1000A1, 14 November 2019 - 12:29 PM.