Page 1 of 1

PreferredQuality prior to extractUrl

PostPosted: Wed Feb 08, 2012 3:44 am
by mike_metro
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?

Re: PreferredQuality prior to extractUrl

PostPosted: Wed Feb 08, 2012 4:33 am
by jhb50
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.

Re: PreferredQuality prior to extractUrl

PostPosted: Wed Feb 08, 2012 5:31 am
by mike_metro
Not positive, but there isn't a property for quality on an item in the return from extractItems.

Re: PreferredQuality prior to extractUrl

PostPosted: Wed Feb 08, 2012 10:15 am
by zip
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?

Re: PreferredQuality prior to extractUrl

PostPosted: Wed Feb 08, 2012 6:44 pm
by mike_metro
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.

Re: PreferredQuality prior to extractUrl

PostPosted: Wed Feb 08, 2012 9:45 pm
by zip
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.

Re: PreferredQuality prior to extractUrl

PostPosted: Fri Feb 10, 2012 6:56 pm
by mike_metro
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.