Using Mega add-on for streaming mega links


New member
Mar 26, 2012
Hi all,

I just have updated the Mega add-on in the official repository with a single change, so from now it is possible to stream content from Mega inside other addons.

Main idea is simple, if you have this URL for a video hosted in Mega:!kwM3kJCC!RkIyTjpHYhw7kK3nS2aLghCSG5cil1sHVxPCPkm3gBo

If you have the Mega add-on installed on XBMC and you try to play an URL with this structure:

Then XBMC will open the video using an anonymous account on the Mega add-on.

(Well, in fact it also worked for me even without urlencoding the "url" attribute)

I think this could be useful, not sure if anyone solved it yet so i hope you like it.

To be honest i had help from buster25 for this, so credits go for him too :)



New member
Oct 17, 2013
Hi, thanks for your addon!
I get errors with ascii encode (my MEGA account has files with russians and germany characters) wenn reading index of MEGA-files.
With another MEGA account (without russian or germany file names) the addon workt good.

16:10:12 T:2788244288   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\xfc' in position 60: ordinal not in range(128)
Can your fix this?
And can you upload your new addon to another place too.

Thank you!
Last edited: