Page 1 of 1

folder vs item refresh

PostPosted: Sat Mar 03, 2012 1:29 pm
by jhb50
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?

Re: folder vs item refresh

PostPosted: Sat Mar 03, 2012 2:55 pm
by zip
Looking at the code I think the 'mutually exclusive' comment might be wrong ;-) give it a go.

Re: folder vs item refresh

PostPosted: Sun Jul 22, 2012 2:37 pm
by xs2inattar
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.

Re: folder vs item refresh

PostPosted: Sun Jul 22, 2012 6:12 pm
by jhb50
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)