Open GoogleCodeExporter opened 9 years ago
Sorry, I haven't been ignoring this one, just doing my research.
Looks like searching by upc shouldnt be hard. Although Netflix but does not
provide a
method, I do can maintain a upc searchable index meanwhile.
[http://netflix.webbmaster.org/query.php?upc=0043396824393]
The tricky part is scanning the bar code to ghet the upc. Luckily Zebra
crossing is
a pretty sweet tool for android phones, and I think I may just leverage that.
[http://code.google.com/p/zxing/wiki/ScanningViaIntent]
Original comment by OlliTech
on 10 Mar 2010 at 1:35
If netflix does not provide an api for searching by upc, you can always check a
different
site first. like reference amazon or another site for the name, then send the
name over
to netflix.
Original comment by arrmihar...@gmail.com
on 10 Mar 2010 at 1:42
I have attached a zip with some code that I wrote for another project that
might help in doing this. It uses Amazon Web Services to convert a UPC
(obtained from ZXing intent as mentioned above) into a title. Once you have the
title, I am assuming you can hook into your existing code to search Netflix
with it. You might need to spend some time sanitizing the return value from
Amazon. You can strip out things like "[Blu-ray]", "Collector's Edition", etc.
to make it search friendly. Hopefully you can adapt this for use in queueman.
I am using the Base64 encoding lib from here:
http://iharder.sourceforge.net/current/index.html. I modified Amazon's sample
class "SignedRequestHelper" to use this instead of having to lug around
commons-codec.
Here is a snippet on how you can use it:
String upc = FROM_BARCODE_SCANNER_INTENT;
RestClient client = new RestClient();
String url = AwsUrlFactory.getInstance().createUpcQueryUrl(upc,
AwsConsts.SEARCH_INDEX_DVD);
String response = client.getResponse(url);
AwsItemLookupParser parser = new AwsItemLookupParser(response);
parser.parse();
String title = parser.getTitle();
Hope this helps!
Original comment by travisfi...@gmail.com
on 9 Nov 2010 at 2:19
Attachments:
One more thing, you need to have an Amazon developer account for this to work.
Once you sign up, update AwsConsts with your key/secret strings.
Original comment by travisfi...@gmail.com
on 9 Nov 2010 at 2:23
Travis - that's F! awesome!
Question: There is actually a newer branch of QueueMan that introduces some
nice features like auto-fetch on scroll and better searching using Netflix's
new OData web service. I have been working way too much since march, and will
be doing so until at least February. Unfortunately QueueMan has been suffering
because of that.
Ok, that wasn't a question, but here it is.
Would you be interested in contributing your time as well as your expertise?
QueueMan is opensource, and all contributions would be fully attributed.
Original comment by OlliTech
on 12 Nov 2010 at 11:43
Original issue reported on code.google.com by
arrmihar...@gmail.com
on 14 Feb 2010 at 7:50