FAQ  •  Register  •  Login

PreferredQuality prior to extractUrl

<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Wed Feb 08, 2012 3:44 am

PreferredQuality prior to extractUrl

I am building a new web resource plugin. Unfortunately the item list is dependant on the quality. Is it possible to get PreferredQuality via function / method call while in extractItems? or is the REST service the only way to accomplish this?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Feb 08, 2012 4:33 am

Re: PreferredQuality prior to extractUrl

I believe the correct way is to build the resource with the links for all 3 qualities, then when the use selects one to play the contentUrl that matches that users preference is returned.
<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Wed Feb 08, 2012 5:31 am

Re: PreferredQuality prior to extractUrl

Not positive, but there isn't a property for quality on an item in the return from extractItems.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 08, 2012 10:15 am

Re: PreferredQuality prior to extractUrl

you can build a map of items based on a quality in the extractItems method and then pass it down to exctractURL() as one of the parameters. There you'll be able to pick which url to use.

Or do you mean that some items will not even be available for certain qualities?
<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Wed Feb 08, 2012 6:44 pm

Re: PreferredQuality prior to extractUrl

Correct. I believe that some items may not be available at all based on their quaility. Easy if only non-HD content is available, other way around I would want to filter out the HD only for non HIGH quality.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 08, 2012 9:45 pm

Re: PreferredQuality prior to extractUrl

I'd say go the easy way... support all items and where they have more quality options decide based on the flag. Otherwise default to the only choice available.
<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Fri Feb 10, 2012 6:56 pm

Re: PreferredQuality prior to extractUrl

zip wrote:I'd say go the easy way... support all items and where they have more quality options decide based on the flag. Otherwise default to the only choice available.


Makes sense. Since it's a preferrence vs a filter. Thanks.

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 15 guests

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