FAQ  •  Register  •  Login

folder vs item refresh

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Mar 03, 2012 1:29 pm

folder vs item refresh

I am developing a web resource groovy where the feed needs to be refreshed at a time based on information in the feed items in the previous feed refresh.

I can do this by speciying "expires" on for each item and the feed will be refreshed at the earliest time specified in all the feeds items.

But each feed item url also contains a key which can expire before the feed is refreshed so the feed item also needs to be extracted again when the play request is issued, so I need to specify "expires immediately" for each item.

Problem is the guide says
expiresImmediately – mutually
exclusive with expiresOn


How do I accomplish both goals?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Mar 03, 2012 2:55 pm

Re: folder vs item refresh

Looking at the code I think the 'mutually exclusive' comment might be wrong ;-) give it a go.
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Sun Jul 22, 2012 2:37 pm

Re: folder vs item refresh

JHB, can you please elaborate a bit how did you achieve this item refresh??

How did you manage to extract the stream information again when the item was requested to play by a media renderer.

Thanks.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Jul 22, 2012 6:12 pm

Re: folder vs item refresh

They are not mutually exclusive. Specify them both as in hahasport.groovy
If the original link fails Serviio will go and reaccess the link

  Code:
return new ContentURLContainer(fileType: MediaFileType.VIDEO, contentUrl: rtmpUrl, thumbnailUrl: thumbnailUrl, live: true, expiresOn: expiryDate, cacheKey: cacheKey, expiresImmediately: true)

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 19 guests

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