FAQ  •  Register  •  Login

Help with extractUrl

<<

amnarciso

Serviio newbie

Posts: 4

Joined: Sun Oct 20, 2013 6:11 pm

Post Sun Oct 20, 2013 6:27 pm

Help with extractUrl

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

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Oct 20, 2013 8:57 pm

Re: Help with extractUrl

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

amnarciso

Serviio newbie

Posts: 4

Joined: Sun Oct 20, 2013 6:11 pm

Post Mon Oct 21, 2013 12:45 am

Re: Help with extractUrl

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

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 13 guests

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