[REQUEST] Amazon Prime Instant Video addon (similar to Netflix)
#61
I've updated some of the stuff that can be queried from the API.

You can get a list of genres or amazon categories (they are slightly different):
Code:
$ curl "amazon.jonathanbeluch.com/api/genres/" | python -m json.tool
[
    "Action",
    "Adventure",
    "Animation",
    "Biography",
    "Comedy",
    "Crime",
    "Documentary",
    "Drama",
    "Family",
    "Fantasy",
    "Film-Noir",
    "History",
    "Horror",
    "Music",
    "Musical",
    "Mystery",
    "Romance",
    "Sci-Fi",
    "Short",
    "Sport",
    "Thriller",
    "War",
    "Western"
]

The current supported urls are:

Code:
Get all movies alphabetically sorted (optional query string arguments are "count" - the number of items to return, and "start", the start index to return from (0 based))
GET amazon.jonathanbeluch.com/api/movies

Get info for a specific movie by passing an Amazon ID
GET amazon.jonathanbeluch.com/api/movies/<ASIN>/
    ASIN = amazon id

Get genres
GET amazon.jonathanbeluch.com/api/genres/

Get movies for a particular genre, alphabetically sorted, also supports the "start" and "count" query string arguments.
GET amazon.jonathanbeluch.com/api/genres/<GENRE>/

Get categories
GET amazon.jonathanbeluch.com/api/categories/

Get movies for a particular category, supports "start" and "count"
GET amazon.jonathanbeluch.com/api/categories/<CATEGORY>/

If hosting this as an external API doesn't make sense, I can help you work on the scraping part if you still want assistance. If not, no worries, this was a fun project to learn scrapy, mongodb and flask Smile
Reply
#62
I would be very interested in this as well. I'd be willing to donate some $ if this becomes relatively well integrated into XBMC.

I tried version 0.0.1 since march (that's the latest right? Sad ) but it does not play video. It lists movies and shows but nothing happens when I try to play them.

Here's my xbmc log:
http://pastebin.com/f0CtCgZn

(for the record.. I did set up my user/password and I have a full prime account, not student only)
Reply
#63
Hello!
Some help please.

Apple tv2
Xbmc
Amazon account

Script problem Undecided


21:02:44 T:112586752 M:107601920 ERROR: /var/mobile/Library/Preferences/XBMC/addons/plugin.video.amazon/default.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
21:02:46 T:112586752 M:107282432 ERROR: /var/mobile/Library/Preferences/XBMC/addons/plugin.video.amazon/default.py:14: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.'
COOKIEFILE = os.path.join(os.getcwd().replace(';', ''),'resources','cache','cookies.lwp')
Reply
#64
what is your problem?
Reply
#65
Hello = )

I´ll get an script error when am trying to play a video in the amazon server.
True amazon addon!

Any tips?

Regards
Reply
#66
it works for me.

I would need to actually see the debug logs for where it failed. also please post them to a paste service and link to them. what you posted isn't the actual problem. I suspect your librtmp is just too old to play the videos though.
Reply
#67
BlueCop Wrote:it works for me.

I would need to actually see the debug logs for where it failed. also please post them to a paste service and link to them. what you posted isn't the actual problem. I suspect your librtmp is just too old to play the videos though.

I posted my log right up there ( http://pastebin.com/f0CtCgZn ).. Can you tell me what my problem is? :| librtmp? How would I upgrade that? do I need to build xbmc from source with a new one or is a separate plugin?
Reply
#68
1.
I have the latest librtmp from you.. : -) i manually put it in the map with your instruction


I wrote somehere in forum that you push the amazon true the repository but i cant see that in yours so a manually installed the zip file

2.
Im from sweden - europe..
Is that the problem?

3.
With hulu its says -"Please select a quiality level" window but no lines there. empty and then i have to push remote "back" meny and end the hulu.

here is my log:
http://teknik2011.blogspot.com/2011/07/x...07-22.html
Reply
#69
for hulu you need to be in United states otherwise you get ''
With hulu its says''."Please select a quiality level"
im from uk and get the same thing.
you need to use a US vpn to get hulu in europe. the atv2 cant nativly be used with a vpn
one solution is to use a dd-wrt router,
or the service i use unblock us http://unblock-us.com/ this can be nativly used with atv2 as it used a dns server. if you use this service you will also be able to get cbs and fox to work in the freecable plugin and the southpark plugin, espn 3.

aw_309 Wrote:1.
I have the latest librtmp from you.. : -) i manually put it in the map with your instruction


I wrote somehere in forum that you push the amazon true the repository but i cant see that in yours so a manually installed the zip file

2.
Im from sweden - europe..
Is that the problem?

3.
With hulu its says -"Please select a quiality level" window but no lines there. empty and then i have to push remote "back" meny and end the hulu.

here is my log:
http://teknik2011.blogspot.com/2011/07/x...07-22.html
Reply
#70
Hi blucop,

Great plugin. I see the list of movies but when I try to play I get this error:

12:09:42 T:2899086192 M:1584259072 NOTICE: Name: Food Inc.
12:09:42 T:2899086192 M:1584259072 NOTICE: getHTTP :: url = http://www.amazon.com/Food-Inc/dp/B002VR...973&sr=1-4
12:09:44 T:2899086192 M:1584263168 NOTICE: getHTTP :: url = https://atv-ps.amazon.com/cdp/catalog/Ge...firmware=1
12:09:45 T:2899086192 M:1584263168 ERROR: Error Type: urllib2.HTTPError
12:09:45 T:2899086192 M:1584263168 ERROR: Error Contents: HTTP Error 403: Forbidden
12:09:45 T:2899086192 M:1584263168 ERROR: Traceback (most recent call last):
File "/home/p/.xbmc/addons/plugin.video.amazon/default.py", line 286, in ?
PLAYVIDEO(url)
File "/home/p/.xbmc/addons/plugin.video.amazon/default.py", line 91, in PLAYVIDEO
data = getURL(getstream,'atv-ps.amazon.com')
File "/home/p/.xbmc/addons/plugin.video.amazon/default.py", line 23, in getURL
usock = opener.open(url)
File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 364, in open
response = meth(req, response)
File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 471, in http_response
response = self.parent.error(
File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 402, in error
return self._call_chain(*args)
File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 480, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
12:09:45 T:3079354240 M:1584263168 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.amazon/?url=http%3A%2F%2Fwww.amazon.com%2FFood-Inc%2Fdp%2FB002VRZEYM%2Fref%3Dsr_1_4%3Fs%3Dinstant-video%26ie%3DUTF8%26qid%3D1311620973%26sr%3D1-4&mode=10&name=Food+Inc.]

I'm running xmbclive 10.1 on Linux ubuntu 10.04. I'm a prime member and can view movies on my linux browser (ff and chrome).
Reply
#71
yeap they changed something that shut us down. Still need to look ibto it further
Reply
#72
OK, it looks like I had an incorrect user/pass.. Now I get this:

12:18:43 T:2899086192 M:1585025024 NOTICE: -->Python Interpreter Initialized<--
12:18:45 T:2899086192 M:1584500736 NOTICE: Mode: 10
12:18:45 T:2899086192 M:1584500736 NOTICE: URL: http://www.amazon.com/The-Superman-Movie...476&sr=1-9
12:18:45 T:2899086192 M:1584500736 NOTICE: Name: The Superman Movie
12:18:45 T:2899086192 M:1584500736 NOTICE: getHTTP :: url = http://www.amazon.com/The-Superman-Movie...476&sr=1-9
12:18:48 T:2899086192 M:1584263168 NOTICE: getHTTP :: url = https://atv-ps.amazon.com/cdp/catalog/Ge...firmware=1
12:18:49 T:2899086192 M:1584644096 NOTICE: [{u'url': u'rtmpe://cp79203.edgefcs.net/ondemand/mp4:ans/107565/h264/WB/2/607/06/ac71c312-d98c-4818-94b5-422e374bbd85-979.mp4?auth=da.bqc0d7bUaZcVdIbMcqdSc4d9bPcIb.bb-bolCgz-FPa-PxK1Jyu-k8qdn7rfp8n4qXkbkfndl8lTqXmYs3p6lXrWoUr4pcoXp8lTk4oRlakcp8l5s9p9lUqeoRsTqTn9pekaken8&aifp=v001&slist=ans/107565/h264/WB/2/607/06/', u'drm': u'NONE', u'contentQuality': u'SD', u'bitrate': 348, u'audioCodec': u'STEREO'}, {u'url': u'rtmpe://cp79203.edgefcs.net/ondemand/mp4:ans/107565/h264/WB/2/607/06/3d550683-86d1-4754-817a-9df06dfa204e-979.mp4?auth=da.bqc0d7bUaZcVdIbMcqdSc4d9bPcIb.bb-bolCgz-FPa-PxK1Jyu-k8qdn7rfp8n4qXkbkfndl8lTqXmYs3p6lXrWoUr4pcoXp8lTk4oRlakcp8l5s9p9lUqeoRsTqTn9pekaken8&aifp=v001&slist=ans/107565/h264/WB/2/607/06/', u'drm': u'NONE', u'contentQuality': u'SD', u'bitrate': 664, u'audioCodec': u'STEREO'}, {u'url': u'rtmpe://cp79203.edgefcs.net/ondemand/mp4:ans/107565/h264/WB/2/607/06/05ebb4b6-b0c2-43a5-8446-97d2310421c5-979.mp4?auth=da.bqc0d7bUaZcVdIbMcqdSc4d9bPcIb.bb-bolCgz-FPa-PxK1Jyu-k8qdn7rfp8n4qXkbkfndl8lTqXmYs3p6lXrWoUr4pcoXp8lTk4oRlakcp8l5s9p9lUqeoRsTqTn9pekaken8&aifp=v001&slist=ans/107565/h264/WB/2/607/06/', u'drm': u'NONE', u'contentQuality': u'SD', u'bitrate': 996, u'audioCodec': u'STEREO'}, {u'url': u'rtmpe://cp79203.edgefcs.net/ondemand/mp4:ans/107565/h264/WB/2/607/06/ee8b40b0-9b75-438d-bc90-6844718db087-979.mp4?auth=da.bqc0d7bUaZcVdIbMcqdSc4d9bPcIb.bb-bolCgz-FPa-PxK1Jyu-k8qdn7rfp8n4qXkbkfndl8lTqXmYs3p6lXrWoUr4pcoXp8lTk4oRlakcp8l5s9p9lUqeoRsTqTn9pekaken8&aifp=v001&slist=ans/107565/h264/WB/2/607/06/', u'drm': u'NONE', u'contentQuality': u'SD', u'bitrate': 1328, u'audioCodec': u'STEREO'}]
12:18:49 T:3079354240 M:1583501312 NOTICE: DVDPlayer: Opening: rtmpe://cp79203.edgefcs.net:1935/ondemand?auth=da.bqc0d7bUaZcVdIbMcqdSc4d9bPcIb.bb-bolCgz-FPa-PxK1Jyu-k8qdn7rfp8n4qXkbkfndl8lTqXmYs3p6lXrWoUr4pcoXp8lTk4oRlakcp8l5s9p9lUqeoRsTqTn9pekaken8&aifp=v001&slist=ans/107565/h264/WB/2/607/06/ playpath=mp4:ans/107565/h264/WB/2/607/06/ee8b40b0-9b75-438d-bc90-6844718db087-979.mp4 swfurl=http://ecx.images-amazon.com/images/G/01/digital/video/streaming/5.7-0/UnboxScreeningRoomClient._V158104219_.swf swfvfy=true
12:18:49 T:3079354240 M:1583501312 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
12:18:49 T:2918726512 M:1583501312 NOTICE: Creating InputStream
12:18:50 T:2918726512 M:1583378432 WARNING: HandShake: Type mismatch: client sent 6, server answered 9
12:18:50 T:2918726512 M:1583378432 WARNING: HandShake: Server not genuine Adobe!
12:18:50 T:2918726512 M:1583378432 ERROR: RTMP_Connect1, handshake failed.
12:18:50 T:2918726512 M:1583378432 ERROR: CDVDPlayer::OpenInputStream - error opening [rtmpe://cp79203.edgefcs.net:1935/ondemand?auth=da.bqc0d7bUaZcVdIbMcqdSc4d9bPcIb.bb-bolCgz-FPa-PxK1Jyu-k8qdn7rfp8n4qXkbkfndl8lTqXmYs3p6lXrWoUr4pcoXp8lTk4oRlakcp8l5s9p9lUqeoRsTqTn9pekaken8&aifp=v001&slist=ans/107565/h264/WB/2/607/06/ playpath=mp4:ans/107565/h264/WB/2/607/06/ee8b40b0-9b75-438d-bc90-6844718db087-979.mp4 swfurl=http://ecx.images-amazon.com/images/G/01/digital/video/streaming/5.7-0/UnboxScreeningRoomClient._V158104219_.swf swfvfy=true]
12:18:50 T:2918726512 M:1583378432 NOTICE: CDVDPlayer::OnExit()
12:18:50 T:2918726512 M:1583378432 NOTICE: CDVDPlayer::OnExit() deleting input stream
12:18:50 T:3079354240 M:1583378432 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.amazon/?url=http%3A%2F%2Fwww.amazon.com%2FThe-Superman-Movie%2Fdp%2FB001EBWIT0%2Fref%3Dsr_1_9%3Fs%3Dinstant-video%26ie%3DUTF8%26qid%3D1311621476%26sr%3D1-9&mode=10&name=The+Superman+Movie]
12:18:50 T:3079354240 M:1583460352 NOTICE: CDVDPlayer::CloseFile()
12:18:50 T:3079354240 M:1583460352 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
12:18:50 T:3079354240 M:1583460352 NOTICE: DVDPlayer: waiting for threads to exit
12:18:50 T:3079354240 M:1583460352 NOTICE: DVDPlayer: finished waiting
Reply
#73
mythboy Wrote:12:18:49 T:2918726512 M:1583501312 NOTICE: Creating InputStream
12:18:50 T:2918726512 M:1583378432 WARNING: HandShake: Type mismatch: client sent 6, server answered 9
12:18:50 T:2918726512 M:1583378432 WARNING: HandShake: Server not genuine Adobe!
12:18:50 T:2918726512 M:1583378432 ERROR: RTMP_Connect1, handshake failed.

It looks like AMAZON upgraded their stream server? Is it just a matter of upgrading the Flash player client?
Reply
#74
I hadn't used this plugin in a while but I tried it yesterday and it worked fine -- and some of the content seems to be much higher quality (HD?) than before but trying it today I get a script error. It works fine in my Internet browser. Is it down for anyone else?
Image
Reply
#75
Hi,

I have just tried using Amazon VOD/Prime for the first time, and have installed Bluecop's plugin. Not really sure if it's working at the moment or not...

I can access the lists of TV shows and Movies on my atv2, but there is nowhere to add my Amazon Prime account details. Am I missing something?

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
[REQUEST] Amazon Prime Instant Video addon (similar to Netflix)0