Plex Media Center

  • Downloads
  • Mobile
    • iOS
    • Android
  • Support
    • Forums
    • Wiki
  • Dev Center
  • Contact Us
  • News
    • Blog
    • Press Releases
  • Labs

More Python goodness

March 25th, 2008 | Category: Coding | Author: lamnina

I fixed a few more issues with Python, and now Apple Movies Trailers work! Browsing, playing, it all works. I did need to replace some of the Python libraries in the downloaded script with the OS X version. This raises the issue of how to support downloading scripts for different platforms, when the scripts need binary components.

trailers.png
10 comments

10 Comments so far

  1. cjc March 25th, 2008 12:33 pm

    WooHoo! I’m First!

    Keep up the good work elan! Every little step along the way, moves us a little bit closer to the final product!

  2. eduo March 25th, 2008 12:48 pm

    This is probably an issue to take to the larger XBMC community, as it’ll become more common as XBMC is ported to more platforms.

    One of the advantages of XBMC is running local scripts. In XBMC this wasn’t an issue, as it was a sandbox anyway. But in the current set-up we’ll have it potentially in Windows, Mac OSX and every flavour of Linux under the sun, including those it’s run as an OS front-end exclusively.

    It’s probably hight time that XBMC reported its version and platform in all its versions. It should be trivial and it’s basic (every web browser out there does it from day one, for example).

    The alternative is to have downloadable packages sporting multiple binaries (a la Mac OSX/NeXT Step Fat Binary Packages + Bundle packages), which although I don’t think is a bad idea doesn’t preclude the above.

    I’d push for the former and possibly both.

  3. phunkysai March 25th, 2008 3:20 pm

    Can you view the HD trailers, or is that up to the script writer to include?

  4. elan March 25th, 2008 3:59 pm

    @phunkysai: Yeah, I think they’re all viewable.

  5. Jezz_X March 25th, 2008 5:17 pm

    not sure if HD trailers are on by default but its in the settings to set your prefered trailer size then it just keeps looking lower rez if it can’t find that one because apple dosn’t have it

  6. optikinescant March 26th, 2008 6:12 am

    Sweet! I can’t wait for this release to come out, OSXBMC has been perfect on my mac mini htpc and this’ll just take it over the top. :D

  7. bmfrosty March 26th, 2008 5:40 pm

    @elan

    With Python presumably working out of the box in your next release, can we expect the PS3 Bluetooth Remote to work out of the box as well?

  8. elan March 26th, 2008 5:53 pm

    @bmfrosty: Python is needed for the PS3 event *client*, not the server (i.e. XBMC), so Python scripting support isn’t required for that feature. AFAIK (check the forums), people may be using it with the current release.

  9. name March 27th, 2008 4:46 am

    so the python problem is the platform-specific stuff then?

    maybe its time to write a HAL for xbmc, i.e. redrawScreen() would call hal->redraw() which would in turn call redrawOpenGL() on linux/macosx, redrawDirectX() on windows/xbox etc. (excuse my pseudocode).

    i was thinking of writing some python scripts, but a bit put-off if there’s problems with libraries and stuff. i assumed xbmc contained a full python distribution (or used the host os’s python on macosx/linux) and the scripts just called stdlib functions.

    anyway, excellent work so far – my new mac mini is playing movies over nfs from the linux box, and the imdb scraping works a lot quicker than on the xbox.

  10. krux March 27th, 2008 11:26 pm

    great..

    now i can finally ditch frontrow 2, since this was the only reason i was running them parallel on my HTmac!

    *eagerly awaiting new version*

Leave a reply

Support Plex

Mmmmm...Beer!

Archives

  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • December 2011
  • November 2011
  • October 2011
  • July 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008

Categories

  • Coding
  • Developers
  • Fordo
  • Ho, Ho, Ho
  • Holy Cow
  • Metadata
  • myPlex
  • Performance
  • Plug-ins
  • Podcast
  • Really, dawg?
  • Release
  • Status
  • Survey
  • Tease
  • Tips
  • Uncategorized
  • Wow

Meta

  • RSS
  • Log in
  • Valid XHTML
  • XFN
  • WordPress
PLEX
Download
Wiki
Forums
Blog
Credits