FAQ  •  Register  •  Login

Access to default expiry time

<<

jhb50

DLNA master

Posts: 2854

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Dec 07, 2013 9:08 pm

Access to default expiry time

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?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16420

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Dec 08, 2013 1:16 pm

Re: Access to default expiry time

There is no API currently to access that from the plugins. if you need that, create a ticket.
<<

miodek1987

Serviio newbie

Posts: 3

Joined: Wed Jun 03, 2015 11:03 am

Post Wed Jun 03, 2015 11:06 am

Re: Access to default expiry time

That fuction would be nice.
<<

jhb50

DLNA master

Posts: 2854

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Jun 03, 2015 2:30 pm

Re: Access to default expiry time

  Code:
      //# get the console default expiry
      def conInt
      try{
         conInt = getOnlineFeedExpiryInterval()
      }
      catch (ExceptionInInitializerError e){
         conInt = 8
      }   
      def conRefa = curTimea + conInt*60

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.