RSS feed plugin - code to run once per feed update?
Each of the RSS feed items contains an episode ID.
We requires a four step operation to get the playpath for the episode.
First we get a JSON file that contains a list of all the available series and the episode IDs associated with these.
Second we use this data to find the series ID that this episode belongs to.
Third we query a different JSON source using the seriesID to get the play paths for all the episodes for the series.
Fourth we return only the playpath for feed items episode ID
This task would be resouce intensive to repeat from begining to end for every item in the feed. So my plugin populates a Map object of all the data it extracts in step 1.
Then for each feed item it only needs to do step 3 and 4.
Currently my plugin does the Map object population from extractorMatches() method (if the extractor does Match). And this seems to work - since this method is apparently only called once per feed. But what I would really like is to have this code execute once when ever the feed updates. Because I am concerned that my Map will become out of date as time moves on if extractorMatches() method only executes one time - when serviio starts.
Is there a way to do that?
A copy of my plugin is attached. I would like feed back on this as this is a newbie attempt at plugin writing.
linux/Humax HDR-3000T