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 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 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.
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”
Hi. thank you for this. I tried it on battle for heaven (worked) Then on the film, I had been watching Dry Summer (didn’t work) Then time regained (worked)
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.
Hi,
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?
Thanks
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.
Thanks for the quick fix, but the link to v0.3 seems to still be for v0.2.
Ah…you should be able to download v0.3 now.
I’m sorry to report but I still appear to be getting script errors, even after switching to v0.3.
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.
Hi,
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 plugin.video.mubi folder in in /XBMC/addons and plugin.video.mubi.0.3.zip/XBMC/addons/packages (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) [ http://wiki.xbmc.org/?title=Log_file 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.
Jamie
I tried to delete the addon folders and reinstall but no luck.
The problem happens when I attempt to start the addon.
Here is my log:
http://xbmclogs.com/show.php?id=278110
After reading my log myself, I just reinstalled the swift2 script and it now appears to work. Strange that this seems ti have been the trouble all along. Isn’t this part of vanilla XBMC?
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 mubi.com. (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 mubi.com. 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.
Hi,
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
Hi Jamie,
Thanks for making this nice plugin. I had it working one time but now I want to update to 0.4 and the Dropbox link isn’t working:
https://www.dropbox.com/s/j5lpw2i19qlz17g/plugin.video.mubi.0.4.zip
Did it change?
The link should be working again now
Great project, but is it still alive? Download link of v 0.4 seems dead.
The link should be working again now
Hi,
I would like to try your plugin but the Dropbox link is broken.
It would nice if someone could reup.
Thanks!
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.
The link should be working again now
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.
Thanks for the new link, it’s working very well with my system.
Oh I’m sorry it was just very slow! I promise I tried 4 or 5 times with reinstalls before I posted here 🙂 All working, and thank you this is great!
Is there a chance that we get a version with HD stream option and movie info?
I could’t find anything else to ask, thanks again.
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,
Did you see this attempt from Mubi to reach addon developers about API?
https://github.com/jbaiter/plugin.video.mubi/issues/7
Thank you for your work.
Do you think it is possible to run the plugin on XMBC running on a Raspberry Pi or a Fire TV?
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?
I get only script errors when I’m trying to launch the plugin. It happened before for short periods, but this time it seems serious.
Same here. Only script errors since a few days.
Plugin should be working again.
Jamie
Still same script errors for me.
version 0.5 works fine here. Thank you!
Is there any chance that the script in the future will scrape some more info about the movies from the website?
Plugin started to work suddenly, without doing any changes. Must be regional differences on MUBI side.
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,
Thanks for the great plugin works a treat!
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.
Matt
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 Mubi.com – 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 Mubi.com. (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!!!!!
Hi,
Could not get the plugin to work on friday. Will check again during the next days see if it is temporary. Thx
Should be fixed now..
Hi Jamie, as of monday your add-on is still generating the error script.
Just noticed myself, should be fixed now..
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.
Hello!
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!
Bob
Sorry, only just realised it was broken (due to a small change at MUBI’s end)
Should be fixed now (see link above)