2010-05-31, 08:40
kreach Wrote:I have some patches to get the plugin working without installing PyCrypto. I'm having trouble understanding how git works, so I'll post them here.
First, for the crypto support needed use CryptoPy from http://sourceforge.net/projects/cryptopy/. However, all the python files need "#coding: utf-8" prepended to them. After you do that, extract the crypto folder to Hulu/resources/lib .
And also add pystruct.py and aes.py to Hulu/resources/lib. pystruct.py is needed because the struct module included with xbmc does not have the Struct class and aes.py just unifies the api between the PyCrypto and CrytoPy.
I've pulled the aes patch into my repo. I've also removed the use of the struct module, so that bit can go away. I recommend installing CryptoPy in the XBMC system/python/Lib directory instead of just in the Hulu plugin, it will probably come in handy for other plugins. (E.g. for this one http://forum.xbmc.org/showthread.php?tid=74089 )