A new MUBI plugin for XBMC/Kodi

Posted: July 11th, 2014 | Author: | Filed under: General, Uncategorized, XBMC | 71 Comments »

Download Mubi (2015) plugin 0.8.zip [updated : 21/3/2015] [** Updated: March 2015 **]

[The source is also now on GitHub]

I really like MUBI a moving 30 day window of hand curated films for the price of a coffee, or as they like to describe themselves ‘an online cinema’.

But despite being a member for some time now and reguarly checking the iPad app for new films. I found myself rarely streaming the films direct from MUBI’s site, as my main film watching platform is a dedicated HTPC running XBMC permanatly rigged up to a projector and despite the ability to relay films from an iPad or a laptop to XBMC via Airplay it always felt cumbersome as the XBMC remote had no control over the film (pause/play/rewind). Another (slightly geeky, but actually rather useful) reason I wanted native playback was that the lighting in my house is connected up to dim when a movie starts/stops which doesn’t happen unless the movie is playing directly in XBMC.

Someone had previously written a very nice and feature rich MUBI plugin for XBMC. However it was now i) broken and no longer being maintained and ii) was built against an older version of the site, prior to the introduction of a 30 day selection window and the phasing out of the old pay-per-film model, so much of it’s funtionality was no longer relevant and/or broken.

But that gave me the incentive to look at using a mix of Beautiful Soup (to handle the scraping, MUBI doesn’t have a public API I assume due to rights issues) and XBMCSwift2 (to make the addon code slightly cleaner and easier to test from the command line).

Anyway, after a couple of false starts, a bit of request/response interrogation using Charles and some trial and error, I managed to get everything working. Although this is my first XBMC plugin, first time using BeautifulSoup or XMBCSwift2 and the second thing I have written in Python of any consequence, so it’s undoubtable a little rough round the edges.

I haven’t pushed this out as an official XBMC plugin, nor do I have any plans to. But if anyone wants to download my code/plugin then feel free to do so. Just don’t ask me (or MUBI) for any support on it, although feel free to add feedback or let me know if it’s broken for you (just don’t expect an immediate fix!). It’s highly likely to break again next time MUBI change their site and I certianly don’t want to get into a cat/mouse situation trying to keep it up to date, especially if they are unhappy with the idea of a 3rd party XBMC plugin accessing their service.

Download Mubi (2014) plugin 0.5.zip [updated : 28/11/2014]

Download from GitHub

You will need a MUBI account to use the plugin, you can sign up for a 30 day trial here.

MUBI XBMC plugin

Thanks to jbaiter for his original plugin which gave me a starting off point for this version. There’s also a couple of lines/patterns that I took verbatim from his original plugin due to their elegance/simplicity.


71 Comments on “A new MUBI plugin for XBMC/Kodi”

  1. 1 Uwe said at 3:26 pm on December 5th, 2015:

    Hi Jamie, version 0.8 worked fine after I’d bought the keys for the license from Raspberry. So there was really no flaw with your addon.
    But now, since a few days, Mubi seems to have altered something with their scripting. No chance for loggin anymore.
    If I only had more knowledge in programming, I would have looked into it.
    Would you be so kind as to check if you could do anything about it?
    Would be appreciated greatly!!

  2. 2 Martin said at 4:56 pm on October 17th, 2016:

    Hi, I made a try at fixing your plugin but the secret url is now a attribute so I think the current Requests.get solution might not work anymore. I’m not into web coding or streaming so I have totally hit a wall here. If you would have a look at it someday it would be truly appreciated ;D

    cheers mate!
    /martin


Leave a Reply