Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Amazon Prime Plugin Beta

Hi,

So I have a pretty basic plugin that lets you watch the tv shows offered by Amazon prime. I must emphasize this is an early release, I just wanted to see if people could replicate a bug of mine, that is, pausing a video crashes the media server. Let me know either way if it does or doesn't crash PMS when you pause during a video.

I haven't added movies yet, it's only tv shows. Navigation is basic, you can list all shows, browse by genre, or by network. However you'll note that not all shows appear in the shows category, that is Amazon's fault as they don't list it as a show individually on their site which I scrape from. You can try to find it by using the all tv shows option, but warning, that will take awhile to load because its scraping every season of every show on Amazon (they stupidly split the a show's seasons when you try to browse).

Make sure to put in your username and password in the preferences before you try to load a video.

Again let me know if anyone else runs into PMS crashing when you try to pause the video.
«1

Comments

  • SynlorSynlor Posts: 7Members
    Well this is a much improved version in terms of video handling. I still don't know 100% what I changed to make the controls work without crashing the server. Furthermore, after decompiling the video swf I found out a way to relaunch it allowing me to have full javascript controls, so it's setup to not only pause and play, but the seek bar works to visualize how far in, and forward backward controls work, and finally it can actually detect when the video is done.

    I still haven't work on the movie side of it all, I'm not sure how I am going to approach it... there are just so many that it is unfeasable to scrape them in a short amount of time. Any ideas on how to do this? Possibly some database that gets updated every few runs that holds all the data so I don't need to scrape everytime?

    Oh, minor addition in that the summaries are now displayed, and the season pictures show up as well.

    Let me know how it works out for you.
  • SutFamSutFam Posts: 5Members
    edited April 2012
    Hi--I tried your plug-in (much needed for Plex!); I downloaded the 63.89k version and still got the crashing of the server when the playback within Amazon was paused when using Plex 095, but didn't have the problem using it in Plex 094.
    Anyone else having that trouble?

    Also, ideas on getting the playback from Amazon to fill the screen? (there's a black frame around the playback on my computer).

    Thanks so much for working on this!
  • PCheesePCheese Posts: 6Members, Plex Pass
    It would be great to have a functional Amazon Prime plug-in! Have you considered putting this on github so other people could contribute more easily?

    I installed and set up this plug-in, but I haven't been able to start playback of any video files yet. Plex Media Server crashes when I do. Attached is the crash report, and in addition the following messages appeared in Console:

    4/22/12 11:07:58.769 PM Plex Media Server: Could not find image named 'IBLostImage'.
    4/22/12 11:07:59.726 PM Plex Media Server: -[SUHost sharedFrameworksPath]: unrecognized selector sent to instance 0x32a0010
  • Nice work so far! it doesn't seem to work on my Win7 32bit box... I know this is an early beta but do you have plans to keep working on it? I would love to get this functionality!
  • SynlorSynlor Posts: 7Members
    Sorry guys, dead week with lots of projects due. Most universities during dead week you have no classes and get to study, here we have classes and all our semester long projects are due... no idea why they call it dead week as its the busiest week of the semester.

    These bugs where it is crashing the media server, I have no idea how to fix that. It appears to be a problem with the built in webkit browsing accessing amazon's site, and I think the only way it could get fixed is a developer look at. Maybe it is something on my end and don't want to blame them, but I have given up on trying to find a way, especially since it is working for me (I'm kind of selfish, I'm only writing this for myself, I just figured I'd share what I have in progress)

    Anyways, I have been making some improvements. Now instead of the unsorted option listing all pages, it only lists the first page of search results and has a entry for the next page. Secondly, there is a search function available for both TV and movies now. For movies, the only way to browse is via searching, I still haven't implemented any genres or anything like that.

    I have been trying to get it to work with your amazon library of purchased VOD content, but that is not going very well as I am having a hard time logging in on the python end of it. Doing a simple POST request with the username and password doesn't fly with Amazon, and I don't know how to do anything else, so I'll play around with it this weekend some more, but I wouldn't count on that.

    To be honest, if I can get the library function working I will most likely stop working on this, as it is good enough for me. I will look into putting it up on github as suggested so other people can build on it from there.


    [attachment=10446:Amazon Prime.bundle.zip] Beta 3
  • SynlorSynlor Posts: 7Members
    Alright, I got the purchased library working with a little help of the old amazon plugin, and I put it all up on github. https://github.com/kahrendt/plex-Amazon-Prime
    Note to anyone looking at the source code, it isn't pretty and my xpath's are probably the least efficient way to do it, I have never used it before so I just kept trying different things until I got it to work.


    As of now, I believe I won't be working on this anymore. Like I said, this was just a personal project and decided to share what I had. By all means someone take over and improve it. The people who have problems with it crashing, sorry, I don't know how to fix that as I believe its a bug in the plex software itself. It's my understanding that the media server shouldn't crash whatever a plugin does, so I am stumped.

    Sorry for not being more helpful/continuing this, but it is good enough for me.
  • PCheesePCheese Posts: 6Members, Plex Pass
    Thanks for putting this up on Github, Synlor!
  • marklightmarklight Posts: 982Members, Plex Pass Plex Pass
    I for one really appreciate this - i know there are a ton of people that would love a working Amazon VOD plugin, especially if it'd work with the iOS devices.
  • ATLChrisATLChris Posts: 90Members, Plex Pass Plex Pass
    I am very interested in this. Has anyone further developed this plugin?

    Amazon Prime Watch Instantly is really starting to take off and I would love to see a full featured plugin for Plex and Amazon Watch Instantly.
  • tiny-etiny-e Posts: 392Members, Plex Pass Plex Pass
    edited September 2012
    Hi- Thanks for the cool plugin!

    Just tried this out. Everything seems to work -- until I try to play a video. Then it hangs at "sign in" and the plugin apparently quits.

    log here: http://pastebin.com/fq8a2HuL

    EDIT: OOF!.. just saw the dev is no longer supporting the plugin... rats.
  • tiny-etiny-e Posts: 392Members, Plex Pass Plex Pass
    http://forums.plexapp.com/index.php/topic/46706-cast-your-vote-for-plugins/


    If you're a plexpass member you can vote for the plugin to be improved/fixed at the link above.
  • jk0jk0 Channel Developer Posts: 105Members, Plex Pass Plex Pass
    I honestly can't believe something this popular/in demand isn't more widely supported. I want it so bad that I'm almost tempted to write the plugin myself! :)
  • ATLChrisATLChris Posts: 90Members, Plex Pass Plex Pass
    jk0 wrote:

    I honestly can't believe something this popular/in demand isn't more widely supported. I want it so bad that I'm almost tempted to write the plugin myself! :)



    Please do! It should be supported. I watch Amazon Instant Video (Prime Mostly) almost everyday. Hopefully Plex will bring on some plugin developers with their new revenue stream (Plex Pass).
  • IanDBirdIanDBird Plex Employee Posts: 2,277Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    jk0 wrote:

    I honestly can't believe something this popular/in demand isn't more widely supported. I want it so bad that I'm almost tempted to write the plugin myself! :)


    You should give it a go! I'd be willing to help you out with any questions you may have... Just DM me and we can discuss.
    Ian
  • jk0jk0 Channel Developer Posts: 105Members, Plex Pass Plex Pass
    IanB! wrote:

    You should give it a go! I'd be willing to help you out with any questions you may have... Just DM me and we can discuss.
    Ian


    Thanks, maybe I'll start looking into it this week.
  • mikedm139mikedm139 Plugin Developer Posts: 3,023Members, Plex Pass, Plex Ninja Plex Ninja
    edited September 2012
    Recently, I've been hacking on Synlor's latest version of the plugin beta. Basically, I just updated the code to use the 2.1 version of the Plex plugin framework and tried to work around the need for Flash/Webkit by grabbing the RTMP streams directly. At this point, it seems that the functionality is limited by the DRM that Amazon embeds in some (if not all) of their videos. I don't have the time to do a lot of testing across their entire library (both because I have a real job and because my free trial period is rapidly running out). Anyone who is interested feel free to download the plugin bundle and unzip it into your plugins folder. I'm interested in any feedback, positive or negative. If you run into problems, errors, etc., logs will be a lot more helpful than just vague "it's not working" posts. Specifically a zip file containing the plugin log (com.plexapp.plugins.AmazonPrime.log), the Plex Media Server log (PlexMediaServer.log), and log for the desktop client (Plex.log) if that's what you're using for playback.
    Download: AmazonPrime.bundle

    The source code with my changes is available on github here.

    P.S. jk0, if you're interested in collaborating or just taking over completely, I'm glad to have the help.
  • jk0jk0 Channel Developer Posts: 105Members, Plex Pass Plex Pass
    mikedm139 wrote:

    P.S. jk0, if you're interested in collaborating or just taking over completely, I'm glad to have the help.


    I like what I see here -- great start! I will fork your repo on GitHub for now and we can go from there.
  • ATLChrisATLChris Posts: 90Members, Plex Pass Plex Pass
    mikedm139 wrote:

    Recently, I've been hacking on Synlor's latest version of the plugin beta. Basically, I just updated the code to use the 2.1 version of the Plex plugin framework and tried to work around the need for Flash/Webkit by grabbing the RTMP streams directly. At this point, it seems that the functionality is limited by the DRM that Amazon embeds in some (if not all) of their videos. I don't have the time to do a lot of testing across their entire library (both because I have a real job and because my free trial period is rapidly running out). Anyone who is interested feel free to download the plugin bundle and unzip it into your plugins folder. I'm interested in any feedback, positive or negative. If you run into problems, errors, etc., logs will be a lot more helpful than just vague "it's not working" posts. Specifically a zip file containing the plugin log (com.plexapp.plugins.AmazonPrime.log), the Plex Media Server log (PlexMediaServer.log), and log for the desktop client (Plex.log) if that's what you're using for playback.
    Download: AmazonPrime.bundle

    The source code with my changes is available on github here.

    P.S. jk0, if you're interested in collaborating or just taking over completely, I'm glad to have the help.


    Thanks for posting this. I just ran through it really quickly and found that none of the "Your Library" section works. I added my credentials, but nothing showed in the "Your Library" section. I also wasn't able to play any videos, even when selecting fro the regular TV section. Also, the general movies search does not work. Sorry, don't have time to zip up and send logs. Just wanted to give quick feedback on the plugin.
  • mikedm139mikedm139 Plugin Developer Posts: 3,023Members, Plex Pass, Plex Ninja Plex Ninja
    ATLChris wrote:

    Thanks for posting this. I just ran through it really quickly and found that none of the "Your Library" section works. I added my credentials, but nothing showed in the "Your Library" section. I also wasn't able to play any videos, even when selecting fro the regular TV section. Also, the general movies search does not work. Sorry, don't have time to zip up and send logs. Just wanted to give quick feedback on the plugin.


    Thanks for the feedback. I look forward to seeing what the logs have to say about it.
  • jk0jk0 Channel Developer Posts: 105Members, Plex Pass Plex Pass
    edited September 2012
    I've decided to get started on this right away. I'm actively pushing updates to my GitHub repo here: https://github.com/jk0/AmazonInstantVideo.bundle

    I'll keep this thread updated as I progress throughout the day/evening.
«1
This discussion has been closed.