Using Mega add-on for streaming mega links

tvalacarta

New member
Mar 26, 2012
8
0
0
Hi all,

I just have updated the Mega add-on in the official xbmchub.com 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:

https://mega.co.nz/#!kwM3kJCC!RkIyTjpHYhw7kK3nS2aLghCSG5cil1sHVxPCPkm3gBo

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

plugin://plugin.video.mega/?action=stream&url=https%3A%2F%2Fmega.co.nz%2F%23%21kwM3kJCC%21RkIyTjpHYhw7kK3nS2aLghCSG5cil1sHVxPCPkm3gBo
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 :)

Regards,
Jesús
 

dimmi777

New member
Oct 17, 2013
1
0
0
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.

Code:
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: