More Python goodness - Plex Blog

More Python goodness

| 25 Mar 2008 | by 10 Comments

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
FacebookTwitterGoogle+LinkedIn
Share this

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