Hulu Plugin Development Thread - Developers only! - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: Hulu Plugin Development Thread - Developers only! (/showthread.php?tid=45888)
- CrashX - 2010-07-01 15:04
highlandsun Wrote:That was your mistake. Read the pycrypto README, don't just extract directories willy-nilly. You'll never get anywhere if you don't follow directions.
k sorry when I read the forum I assumed it was straight forward copy and didn't realize you have compile the library.
I run it on python 2.6 and it gave error but I then again xbmc is using python 2.4 so I should compile with that right ?
- highlandsun - 2010-07-01 15:39
If you're using xbmc's bundled python 2.4, then you should probably just use cryptopy instead. It's pure python and doesn't need to be compiled. *That* one you can simply copy into place.
By the way, please note this wiki http://gitorious.org/xbmc-hulu/pages/Home
We can expand it as needed based on user questions. But since this is the Developers Only thread, I'm not going to address any more user questions here.
- CrashX - 2010-07-01 16:10
highlandsun Wrote:If you're using xbmc's bundled python 2.4, then you should probably just use cryptopy instead. It's pure python and doesn't need to be compiled. *That* one you can simply copy into place.
Thanks for creating the wiki. Just what we need a clear instructions on how to get xbmc hulu plugin to work .
- jmarshall - 2010-07-05 06:29
@highlandsun: Is there any pros and cons with pycrypto versus cryptopy, other than the obvious (cryptopy being pure python). Just wondering which one XBMC should bundle.
- BrokenCodes - 2010-07-05 22:34
PyCrypto does not work very well with Python Version < 2.6
- highlandsun - 2010-07-05 22:53
And the opposite is also true, CryptoPy needs a bunch of non-functional edits to work with python > 2.4. (It has ISO8859-1 Copyright symbol in its comments, and python 2.6 barfs on them.)
Probably CryptoPy is the easiest, since it requires no target-specific compilation. Somebody just needs to go through and clean up the header comment in every single file. kreach already did this in his first build of xbmc-hulu, but he didn't split it out into its own package. It's not a big deal to fix.
- jmarshall - 2010-07-05 23:39
Thanks - I presume that there's no speed issue at all with cryptopy either way (or at least nothing that really makes a big enough difference in practice.)
If so, I agree cryptopy is the easier way to go as we can just pop it in the repo and not bother having more stuff cluttering up SVN
- theuni - 2010-07-06 03:50
Committed to the addons repo. Any addon needing CryptoPy may now add it as a requirement, and it will be fetched automatically.
- highlandsun - 2010-07-06 08:17
theuni Wrote:Committed to the addons repo. Any addon needing CryptoPy may now add it as a requirement, and it will be fetched automatically.
That's very cool. Is there a a particular place in addon.xml that the above line needs to be?
- highlandsun - 2010-07-06 08:21
On a completely different note, for folks wanting to watch Hulu on their Android phones, there's no need to wait for Adobe to give you Flash 10.1. See this youtube video for the demo
The scripts it uses are posted here
It uses the same core as the get-flash-videos Hulu plugin, but uses ffmpeg to fetch the video instead of rtmpdump, and feeds it in to ffserver which converts rtmp to rtsp, and every Android phone can play the resulting rtsp stream.
I've been thinking of converting the xbmc hulu plugin into a CGI instead, it can work as a standalone script for navigating the Hulu videos without all the slowness of the actual Hulu web site.
- jmarshall - 2010-07-06 08:22
It goes in the <requires> tag. There's a bit of info here:
- highlandsun - 2010-07-06 08:24
jmarshall Wrote:Thanks - I presume that there's no speed issue at all with cryptopy either way (or at least nothing that really makes a big enough difference in practice.)
Right, there's no speed issue in the context of the Hulu plugin. The crypto stuff is only needed to decode one or two keys and one XML file. The bulk crypto stuff (e.g. rtmpe) is handled by librtmp.
- linuxluemmel - 2010-07-12 09:29
Today I found this
This may could help to make a better plugin.
- schmoko - 2010-07-22 07:37
I've started to update this plugin to handle Hulu's website redesign. It seems like things are actually laid out much better now, but my experience with scrapers is nil and python is new to me. its not going super smooth. I've gotten categories going so far.
I havent seen any check-ins on gitorious-- is anyone else working on this? I'm sure it's much less work for someone with experience. I don't want to be reinventing the wheel.
Porting to PS3 Media Server - vinaykagarwal - 2010-08-01 18:56
Thanks to all for this wonderful plugin. I am attempting to port it to PS3 Media Server (in Java). I can get the url of the rtmp just fine (newUrl of stream_hulu.py) but I can't seem to get the stream to download using rtmpdump (version dated 2010-06-30 on Windows Vista 32 bit). For example, for the following url
I get the following errors (verbose log below, debug log was too large to attach)
Any help would be really appreciated.