Page 1 of 1

Help with extractUrl

PostPosted: Sun Oct 20, 2013 6:27 pm
by amnarciso
Hi, probably my doubt is very basic, but still it is something that I couldn't find anywhere else

If I understood correctly, my plugin must execute two very important steps:

1: List all the movies that I want to show: extractItems()
2: Get the URL corresponding to each item: extractUrl()

So, my doubt is: What can I do when, during the second step, I realize that the website (my source) doesn't really have an URL to the video?
Is there a way to return something on step 2 that signalize to Serviio that I couldn't find the link, without breaking the entire Feed?

If I just return null on one of the items's URL, then the Serviio won't show any of my items

Thanks for the help

Re: Help with extractUrl

PostPosted: Sun Oct 20, 2013 8:57 pm
by jhb50
If I just return null on one of the items's URL, then the Serviio won't show any of my items

That's not true. Returning null from one extractUrl will not effect the others. Use the debug log to watch what has really happened. Better still do a standalone groovy execution and use println statements to debug.

Re: Help with extractUrl

PostPosted: Mon Oct 21, 2013 12:45 am
by amnarciso
My bad, you are right

I was returning a 'ContentURLContainer' with 'contentUrl' = null
But if I just return null on the function, then it works perfectly

Thanks!!!