General Uncategorized XBMC

A new MUBI plugin for XBMC/Kodi

Download Mubi (2015) plugin [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 Kodi.

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 [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.

54 replies on “A new MUBI plugin for XBMC/Kodi”

Glad you found it useful. I noticed a similar problem myself, think it might have been my over aggressive caching, have upload a new version (0.2) which should hopefully fix this issue.

I’m also working on a new version that uses a different approach to retrieve the film data which hopefully will allow me to pull in all the meta-data (length/director/cast/synopsis etc.) as well. Planning to have it finished in the next week or so.


Thanks for the great work on the plugin. I’ve been desperate for a mubi one, since I started using XBMC a few months ago.

I just tried to install it and I get a script error, even after setting my username and password. Is this still working for everyone else?


I’ve just fixed it (v0.3 above) – looks like MUBI changed the format of their HTML.

(I also noticed an issue whereby if it takes too long to load the video then the onetime url to the stream itself times out and the video will fail to load. I’m not re-retriving a url if this happens, so the plug will just fail with a ‘cannot load stream message’).

Hoping to push out a new version that does away with the screen scraping, so hopefully will avoid these issues, plus it should include more details (synopsis/length/cast/director) on the film. Check back next week to see if I’ve managed to get it finished.

Do you get a list of films, or does the error happen when you try to play back a particular film?

Double check your username/password is set correctly in the settings as that can cause a script error.


I get the script error when I attempt to start the addon. Is this symptomatic of script error for incorrect username/password?

In the next update, is it worth having a a proper error message notifying a user when their username/password is incorrect?

Yes (a script error is symptomatic of an incorrect username/password) and Yes, a nicer error message would obviously be preferable, I’ll look at adding one, but it’s tricky to check if the error is due to an incorrect username/password or something else with the login process (remember none of this is using nice API’s with clear status/response codes from MUBI).

For what it’s worth, I’m still getting script errors despite double-checking my username and password. I attempt to start the add-on but I just get a script error. Is there anyway I could assist in solving the problem? Can I generate a log or anything?

How annoying, I just checked and it’s working for me, but sure happy to help, a couple of things:

– Are you using Gotham? (this is the only version I have tested it on)
– Do you know how to clear out you old plugins? Try deleting the folder in in /XBMC/addons and (also delete the XBMC swift and swift2 plugins/packages, they’ll be reinstalled next time). I previously hit an issue with an old version not being updated properly myself, causing all kinds of confusion. Reboot and reinstall (and check the installed plugin is actually v0.3).
– Can I check you get the error when you start the plugin or is it when you actually start play a stream? and that you are getting past the initial addon install stage?

Post a link to the relevant bit of your logs (on pastebin or something) [ or just tail the xbmc.log when you start the plugin ] and I’ll take a look. I don’t need the whole file, just the bit where the plugin is running / failing.


I was just going to suggest reinstalling xbmcswift2. It’s not part of the vanilla XBMC install, but it is an official addon, so XBMC should have installed it automatically when it saw that my addon required it.

My guess is it got “half-installed” at some stage, so XBMC thought it had a copy installed, but in reality the addon was missing.

Glad, you got it working!

ps. I just updated to 0.4 to fix another issue, not sure which version you installed.

Wonderful addon! Thanks so much for making it.

I have a question, though. Do you know whether or not it’s possible to use the 720p streams where they’re available? It seems the addon defaults to SD even in the (admittedly few) cases where HD is available on (For some reason they all default to SD on the Android app, though. I don’t know if that’s relevant.)

Right now I have Miss Bala and Buenas noches, España available in 720p on There might be more, I haven’t checked them all.

I’ll take a look into this, to be honest I thought XBMC was choosing the HD stream if available (and your bandwidth supported it). But you may well be correct and at the moment it’s just playing the first stream it sees, which tends to be the SD one.

unfortunately the link to 0.4 version seems to be broken.
I’m trying version 0.3 but I’m currently unable to list any content.
I will read the whole post and I hope I will find some good suggestion.
I’m using Openelec (Ghotam) on a Raspberry PI

The link should be working again now!

btw. I just checked and the plugin is working, but noticed a script error last night, this might be due to MUBI A/B testing a new design or something similar. If you do experience problems, might worth having a few attempts and try some different films before reporting an error. I am hoping to do a complete re-write soon but just got back from the Toronto film festival [where I spent to much time watching films!] and now have a pile of work to catch up on.

There now appears to be new streaming quality options on the website. In addition to 480p, there is 480 Plus for example. I presume these just use a higher bitrate. It would be good if we could manually select the stream.

There is a strange problem: All movies on the list play well, but only one plays a few minutes stops and goes to mubi list again. I have checked same movie on PC browser, it’s playing. I think streams are different for every region, but the movie which has problems at my region now is “Coffee and Cigarettes”.

Hi Jamie,

i managed now to get verison 0.4 running on XMBC on a fire tv. What i cannot figure out, is how to choose between the different language options of the same movie. Is that possible?

Thanks a lot Jamie! Nice plugin. Found it by accident 😉
But now I’m running it on a Raspberry pi and it works fine.

Some ideas for the next version:
– In my country there are different languages for some movies available. It would be nice to select them manually.
– Your plugin buffers only around 11MB. Does it depends on Mubi? Because normally streams are buffered with around 21MB (depending on your settings).
– And it would be nice to choose the movie quality (480p, 480p plus, 720p). Maybe plugin-wide with an option in the plugin settings: ‘choose highest’, ‘480p’, … or manually before the movie is played.

Wish you a nice 2015.

Hi Jamie,

It’s working now. The problem seems to have been caused by me having a complex password including symbols. Changing the password to only have alphanumerics, all is fine.

Note, the problem was on the Raspberry Pi. Using Kodi on Windows the complex password worked fine.

Hope that might help someone else.


I tried to install this on XBMC on the Apple TV 2. The zip wouldn’t install and an error message about unmet dependencies flashed up.

I installed it on Windows and it worked fine. Then I had a brain wave (most unlike me) and decided to copy the plugin folder from Windows to the ATV2 using WinSCP. After restarting XBMC on the ATV2, Mubi showed up on my addons list and it worked a treat after entering my u/name and p/word.

The only drawback is that fast forward and rewind crashes the stream because there’s not enough data in the buffer; great if you just want to watch from start to finish. Pausing works fine.

> I’ll take a look into this, to be honest I thought XBMC was choosing the HD stream if available (and your bandwidth supported it). But you may well be correct and at the moment it’s just playing the first stream it sees, which tends to be the SD one.

Thank you for your response. I’ve experimented some more, and every time it comes up with an SD result when HD is available. It seems to be consistent with the default stream on – which is almost always 480p regardless of whether or not there is a 720p stream (or 360p) available. So it doesn’t pick the HD one, but then again neither does the web player on (I don’t know if this last bit is relevant or not.)

Just find and tried this plugin and want say a big thanks for it. The android apk is awful if you use it on your android stb and technical support is even worst. Just for the better if you can fix the hd thing.… Don’t forget to catch Scarlet Street while it last 😉 Thanks again!!!!!

Love your plugin, I am so annoyed that it stopped working last week on MUBI UK. Any idea why?

I am thinking of suggesting to MUBI that they support the XBMC/Kodi platform offcially. Would you be happy about them using the code of your plugin?

Working again, but feel free to nag MUBI about an official version.

I’d be happy to talk to them about officially developing/supporting a plugin with better features (ideally based on an proper API), if there was interest from them.

Thanks a lot for this addon, the main reason I keep a Mubi account!
Unfortunately it suddenly stopped working (since a couple of days ago)… I’d like to know if you are aware of any change on Mubi part and if we can hope for an update?
Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *