Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


- vinaykagarwal - 2010-08-01

In the message above, I suspect my rtmpdump command line to be the problem. I am simply using

PHP Code:
rtmpdump -"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" 
as the command line. Any suggestions?


- jmarshall - 2010-08-01

The app bit looks wrong in the log. I suggest trying using the commandline directly (i.e. rtmpdump --swfVfy <path to swf> <other params>) first, and then get it working with the single command parsing stuff.


- highlandsun - 2010-08-03

Unfortunately the rtmpdump command line doesn't accept the same syntax that librtmp uses. You have to use --swfvfy etc., not swfurl= ...

It was my intention to change rtmpdump to use the same unified syntax, but there are a lot of scripts out there using the old rtmpdump syntax so it just hasn't been worth the effort.

Of course, which syntax is valid where is perfectly obvious if you actually read the man pages. That's what they're for, after all...


- BlueCop - 2010-08-03

Sorry disappeared... personal stuff.

Finally got a hulu plus invite. I am going to subscribe for a month to try to add support.

Highlandsuns git the latest people are using?


- maruchan - 2010-08-03

I've got an updated version of the Hulu plugin sitting on my HTPC that gets TV listings using the XML feeds for HuluDesktop... I feel it's less prone to break this way. I also implemented captions/subtitles. If there's any interest in using the code I can put it on gitorious.


- schmoko - 2010-08-03

Maruchan,

Please do. I didn't realize there was an Xml feed available. Sounds like a much better approach than attempting to update every time Hulu re-organizes its web page.


- highlandsun - 2010-08-04

The Hulu RSS feeds only list "new" items, like the most recent dozen or so episodes of any given show. If you want to see anything older than that, you have to parse the main web pages. So yes, the RSS stuff is easy to parse, but it's of very limited usefulness.



As I said before, to everyone - send a merge request on gitorious and I'll pull in your changes.


- BlueCop - 2010-08-04

maruchan: I would love to it if you could merge that into highlandsuns git. Nice find on the hulu xml feeds in hulu desktop.

highlandsun: i think he means hulu has special feeds for hulu desktop application for listings that you don't use on the regular site.


- highlandsun - 2010-08-04

Ok.

Also, let me know if you want to have Reviewer or Committer access to the repo.


- maruchan - 2010-08-04

Hi guys, I was away on business for awhile--just got home and will look into uploading my changes to a git branch at some point tonight or tomorrow. Yes, Hulu Desktop uses some hidden XML feeds from hulu.com to populate the app. I've fixed the TV listings using these feeds, but haven't gotten around to the movies, since it's not a feature I ever use.


- BlueCop - 2010-08-05

maruchan: thanks looking forward to see your changes.

Like you said I think the xml feeds will be the least likely to break.
Unfortunately I have been working on hulu plus support and found that hulu desktop doesn't support hulu plus. So I am going to try to fix html scraping because I want access to the full seasons available to me. I looked on their forum and they have stated in emails that hulu plus support for hulu desktop is planned but no timeframe is set.

For the curious Hulu plus has 3500kbps and 1500kbps bit rates available for their 720p streams. The 3500kbps looks pretty nice.

highlandsun: I am still trying to figure out git. I got it mostly working but I still don't have a complete grasp of it. Its confusing to me. I tried to send a merge request for limelight CDN fix. I got frustrated and gave up but I will try later to get it working. I have been reading about it but I guess I am slow.


- BlueCop - 2010-08-05

So I got the 720p streams working in XBMC. everything is pretty much the same except the sessionid is required in the rtmp parameters.

all the login code in the hulu in the plug-in still works to grab the right cookies. for some reason the getHTML isn't using the cookies file login() retrieves. This is the main problem I am facing now because it won't retrieve the right smil if you don't use the cookies.

a couple other 720p bit rates for some episodes is 3200kbps, 2500kbps, and 1500kbps

Not sure what the standard is.


- highlandsun - 2010-08-06

The regular free streams are 1000kbps H.264, 650kbps H.264, 400kbps H.264, and 480kbps VP6. I've noticed that there are fewer 1000kbps streams available ever since they rolled out Hulu Plus. Also a lot more shows are on an 8 day delay. So when they said they weren't going to shrink their free service while supplying the paid stuff, they lied. There's pretty much nothing of interest for me left on this site, I can get it all for free within an hour of broadcast using other streaming sites.


- maruchan - 2010-08-06

Haven't had the time to putz around getting Git working on OSX, so for now I'm just posting the latest version of my modified plugin. This will grab subtitles/convert them to SRT (make sure you have 'enable subtitles' checked in the options) and will get TV listings using Hulu's XML feeds. Hopefully something of value can be taken from it--sorry in advance for some of the hackier parts of the code.

http://www.mediafire.com/?jd0jm7hkj2fdeug


- BlueCop - 2010-08-09

Thanks maruchan!

would anyone be offended or mind if I hosted this on a beta repository I have been working on? It contains several US centric plug-ins I have been trying to get updated and fixed.(mostly working, nbc is partly broken)

I am using google code.
http://code.google.com/p/bluecop-xbmc-repo/
zip to install for repo
http://bluecop-xbmc-repo.googlecode.com/files/repository.bluecop.xbmc-plugins.zip

would anyone mind moving to the svn for the repo? Users could update directly from XBMC. I can add anyone who wants access to commit.

I got the cookies working correctly for hulu plus. I was manually adding the needed cookies to the header which was ugly. So you can play the 720p for the videos you can list. The problem now is to update the listings to include all the hulu plus content.