2011-03-31, 02:44
I would really like to see a search feature for the plugin. It would greatly improve navigation Thanks a lot BlueCop! You're the man!
Orijnal Wrote:Got the script installed on my ATV2, but I'm seeing the script error immediately on startup as well. I installed it using the 'install from .zip' file option. The username and password are populated in the settings. What am I missing?
BTW - Thanks, bluecop, for your work on this script. :-)
BlueCop Wrote:... once I have all the issues worked out. ...
BlueCop Wrote:I ramble a bit but anyway my point is that if anyone wants to help out on this then I welcome the help. I was thinking a database of available shows and movies would be good. That will periodically refresh or be manually updated. I don't like the web-scraping but it seems to be the only option right now. The only way we can retrieve a complete list of available movies or tv shows with web scraping is with several requests to the website which is slow.
# python -m json.tool is used to pretty print the JSON response
# Get first 10 movies (not currently sorted or anything)
curl "amazon.jonathanbeluch.com/api/movies/" | python -m json.tool
# Get first 10 movies by genre
curl "amazon.jonathanbeluch.com/api/genres/Documentary/" | python -m json.tool
$ curl "amazon.jonathanbeluch.com/api/movies/?count=1" | python -m json.tool
[
{
"_id": {
"$oid": "4e20544644f7eb76b441f657"
},
"amazon_category": "Performing Arts",
"genres": [
"Documentary"
],
"image_uri": "http://ecx.images-amazon.com/images/I/51T2vDv%2B9XL._SX500_.jpg",
"plot": "Gracefully guided by the Grammy Award-winning percussionist Evelyn Glennie, who also happens to be deaf, this groundbreaking film opens the door to a world where sight, sound, and touch magically converge to elevate our everyday sensory experiences.",
"title": "Touch the Sound",
"url": "http://www.amazon.com/Touch-the-Sound/dp/B0010ER7TC/ref=sr_1_4?s=instant-video&ie=UTF8&qid=1310741665&sr=1-4"
}
]
BlueCop Wrote:awesome. I will try it out. I was thinking integrating scraping into the plugin itself would be best so it doesnt become dependant a external server. This works just as well though.