MyTrailers 2.0.2 (beta) (2 Viewers)

Status
Not open for further replies.

armandp

Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    I was not aware something was broken, last time i checked everything seemed to be working.
    I'm still supporting this plugin so I will investigate, and if it's broken i will fix and post a new version asap.

    Meanwhile i'm still working on a greatly improved version of this plugin but i'm also caught up in work for the Moving Pictures plugin so that might take some more time.
     

    FoxForceFive

    Portal Pro
    February 16, 2009
    71
    2
    Home Country
    United Kingdom United Kingdom
    Two amazing plugins, your hard work is appreciated!

    Thanks for putting in the time & effort.

    Are there any plans to integrate the two? In Boxee when you select a film on your HDD it shows the art & details like in MP, but also brings up the option to view the trailer, which I find a brilliant idea.
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    it's in our roadmap but we are first trying to get 0.8 out the door ;)
     

    FoxForceFive

    Portal Pro
    February 16, 2009
    71
    2
    Home Country
    United Kingdom United Kingdom
    No worries! Good to hear it's been thought of! It's the only thing I actually preferred when I briefly experimented with Boxee!
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    39
    Austria
    Home Country
    Austria Austria
    First i thought the problem was that apple seems to check for user agent nowadays, but after a little digging it seems that the links that are returned from the json feeds are invalid:

    http://movies.apple.com/movies/overture/themenwhostareatgoats/themenwhostareatgoats_h320.mov

    doesn't work (it will redirect you to an error site), while

    http://apple.com/movies/overture/themenwhostareatgoats/themenwhostareatgoats_h320.mov

    works perfectly fine for me. I did a quick fix by adding the line

    Code:
    videourl = videourl.Replace("http://movies.apple.com/", "http://apple.com/");

    in the AppleTrailers.cs file (Line 267). I'm sure you can come up with a better fix but this might spare you some time searching for the problem. ;)
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    First i thought the problem was that apple seems to check for user agent nowadays, but after a little digging it seems that the links that are returned from the json feeds are invalid:

    http://movies.apple.com/movies/overture/themenwhostareatgoats/themenwhostareatgoats_h320.mov

    doesn't work (it will redirect you to an error site), while

    http://apple.com/movies/overture/themenwhostareatgoats/themenwhostareatgoats_h320.mov

    works perfectly fine for me. I did a quick fix by adding the line

    Code:
    videourl = videourl.Replace("http://movies.apple.com/", "http://apple.com/");

    in the AppleTrailers.cs file (Line 267). I'm sure you can come up with a better fix but this might spare you some time searching for the problem. ;)


    Well... that looks like a good fix to me... sure beats the hell out of using a local proxy to use the correct UserAgent.
    I will do a check if it applies to all movies and release a new version.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Just tried this, and it seems to work on most trailers. Only one I couldn't get to work this way was AVATAR. Maybe it's just that one, or apple will do this on all newer trailers? I can get AVATAR playing with the correct UserAgent setting though.
     

    FoxForceFive

    Portal Pro
    February 16, 2009
    71
    2
    Home Country
    United Kingdom United Kingdom
    How are you guys changing the line, is their an xml I have to edit or is it coding work?!
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    39
    Austria
    Home Country
    Austria Austria
    How are you guys changing the line, is their an xml I have to edit or is it coding work?!

    It's coding work, I built the latest svn with the changes described below... Replace your current MyTrailers.dll with the attached file (inside the rar archive) and it should work again...

    I tried the fix with a few trailers and except for "avatar" everything seems to play just fine.
     

    Attachments

    • MyTrailers.rar
      30.6 KB
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom