Hulu Plugin Development Thread - Developers only! - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Hulu Plugin Development Thread - Developers only! (/showthread.php?tid=45888) |
- CrashX - 2010-07-01 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. Code: python setup.py test 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 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 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 @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. Cheers, Jonathan - BrokenCodes - 2010-07-05 PyCrypto does not work very well with Python Version < 2.6 - highlandsun - 2010-07-05 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 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 Cheers, Jonathan - theuni - 2010-07-06 Committed to the addons repo. Any addon needing CryptoPy may now add it as a requirement, and it will be fetched automatically. Code: <import addon="script.module.cryptopy" version="1.2.5" /> TheUni - highlandsun - 2010-07-06 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 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 http://www.youtube.com/watch?v=F7lWLjtrbR0 The scripts it uses are posted here http://forum.xda-developers.com/showpost.php?p=7056836&postcount=34 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 It goes in the <requires> tag. There's a bit of info here: http://wiki.xbmc.org/index.php?title=Addons_for_XBMC#The_.3Crequires.3E_element Cheers, Jonathan - highlandsun - 2010-07-06 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 Today I found this http://lifehacker.com/5583515/access-hulu-from-outside-the-us-without-a-proxy-server This may could help to make a better plugin. - schmoko - 2010-07-22 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 Hello, 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 PHP Code: rtmpe://hulufs.fplive.net/hulu/722/50066722 app=hulu/722/50066722?token=c3RhcnRfdGltZT0yMDEwMDgwMTE2NTAzOCZlbmRfdGltZT0yMDEwMDgwMTE2NTMzOCZkaWdlc3Q9MDAwMGZmZGM0ZmFiYmUyNzc2Mjk1YTcwZDRjODYzNzM=&mbr=1&hgt=4n-YbUiJKrST3eesorcdbFmJ1ECv1X4shmDE1SFKfkDAaNvuPSVQbpc8iGgyOPl7ejH0qG8gUqXsGoDTrEC2LiVIZDwjWnLdC8xaqi6J9_N-1VSe4X9oT4Leg6s8_VQ7eJuTNVkHAlvu05o--hiYSftiaPsiZkwB0Xjlgrj9pFjVLi7BD_ZrTW2NDC50O0daPhnoRhPIBVpn0e59hzuh4g==&hgt_ver=331370278 swfurl=http://www.hulu.com/player.swf playpath=HuluTranscode_180083_470503_852966_FLV_400 pageurl=http://www.hulu.com/watch/163631/moonbase#http%3A%2F%2Fwww.hulu.com%2Ffeed%2Frecent%2Fmovies%3Frd%3D0 I get the following errors (verbose log below, debug log was too large to attach) PHP Code: WARNING: HandShake: Type mismatch: client sent 6, server answered 8 Any help would be really appreciated. Vinay Agarwal PHP Code: RTMPDump v2.3 |