Page 1 of 1

Access to default expiry time

PostPosted: Sat Dec 07, 2013 9:08 pm
by jhb50
The console interval value is used by Serviio to set the expiry time of feeds which have no expireson value set.
After a feed is parsed the log contains an entry showing that expiry time based on the interval, in this example 6 hours.
  Code:
2013-12-07 15:40:58,292 DEBUG [OnlineLibraryManager] Resource http://www.allstreams.tv will expire in the cache on Sat Dec 07 21:40:58 EST 2013

How do I access that 6 hour console interval in my plugins?

Re: Access to default expiry time

PostPosted: Sun Dec 08, 2013 1:16 pm
by zip
There is no API currently to access that from the plugins. if you need that, create a ticket.

Re: Access to default expiry time

PostPosted: Wed Jun 03, 2015 11:06 am
by miodek1987
That fuction would be nice.

Re: Access to default expiry time

PostPosted: Wed Jun 03, 2015 2:30 pm
by jhb50
  Code:
      //# get the console default expiry
      def conInt
      try{
         conInt = getOnlineFeedExpiryInterval()
      }
      catch (ExceptionInInitializerError e){
         conInt = 8
      }   
      def conRefa = curTimea + conInt*60