Access to online feeds, console default expiry time
To maintain currency of dynamic feeds such as sports events, my plugins add a final item detailing the last and next refresh times. Where the user provides the timeout interval to the plugin as a parameter, the next refresh time is available, but otherwise the next refresh will be at the console default and this information is not available. This request is to make that console default interval available to the extract items method just as the maxItems is currently
WebResourceContainer extractItems(URL resourceUrl, int maxItemsToRetrieve) to WebResourceContainer extractItems(URL resourceUrl, int maxItemsToRetrieve int feedRefreshInterval) 8
Comments (7)
-
repo owner -
repo owner -
Account Deleted The raw number of hours from the console please.
-
Account Deleted "that would break all current plugins" Cannot your "methods" be overloaded with any new parms?. I am doing that quite successfully with my @Mixin methods.
-
repo owner perhaps yes, but I'll probably just add it as another shared method you can call from within the plugin
getFeedExpiryDuration() or something like that
-
repo owner - changed version to 1.4
-
repo owner - changed status to resolved
added getOnlineFeedExpiryInterval() shared method
- Log in to comment
Do you need the value from the console (ie number of hours) or the actual time of the next expiry happening?
I don't think it'll be in the method parameters (that would break all current plugins).