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


Was it just the keys that needed to be changed? - thedamner - 2011-01-14

I'm interested in helping anyway I can. I've noticed just about every tool using Hulu just recently broke.


- BlueCop - 2011-01-14

thedamner: They use HMAC signatures to get the smil files now. They also switched up some parameters like using the content_id rather then pid.


- thedamner - 2011-01-14

Ahh...any idea when if your going to submit new code I'd love to take a look at it. I'm just starting to get a good grip on how it works.

Thanks.


- BlueCop - 2011-01-15

already committed the updated code to my repo.


X-Forwarded-For Support - ChinaXBMCer - 2011-01-15

Any chance you can incorporate an X-Forwarded-For http request header spoof like you did the Daily Show plugin for those of us outside the US?

http://forum.xbmc.org/archive/index.php/t-79148.html

Not sure how easily you could use Dimmuxx's fix for the Daily Show plugin, but it went like this:

Quote:Change the following:

req = urllib2.Request(url)
req.addheaders = [('Referer', 'http://www.thedailyshow.com/videos'), ('Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)')]

to

txdata = None
txheaders = {
'Referer': 'http://www.thedailyshow.com/videos/',
'X-Forwarded-For': '12.13.14.15',
'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)',
}
req = urllib2.Request(url, txdata, txheaders)

Right now with a few ports blocked and the Firefox Modify Headers addon, I can watch Hulu abroad through Firefox - would love it to work in XBMC as well.


- vinaykagarwal - 2011-03-29

BlueCop Wrote:already committed the updated code to my repo.

BlueCop, Can I get your updated code?

Updated: Just found it at http://code.google.com/p/bluecop-xbmc-repo/


- opm881 - 2011-03-30

ChinaXBMCer Wrote:Any chance you can incorporate an X-Forwarded-For http request header spoof like you did the Daily Show plugin for those of us outside the US?

http://forum.xbmc.org/archive/index.php/t-79148.html

Not sure how easily you could use Dimmuxx's fix for the Daily Show plugin, but it went like this:



Right now with a few ports blocked and the Firefox Modify Headers addon, I can watch Hulu abroad through Firefox - would love it to work in XBMC as well.

Wait, does this mean you can watch it WITHOUT using a vpn?


- kgoerbig - 2011-04-06

What's the possibility of using the huludesktop app through this plugin to play video from hulu without launching the huludesktop app?


- CrippledIguana - 2011-05-07

Anyone found a solution? I was so pumped to find this plugin but it looks like I can't get anything to play.


- anarchintosh - 2011-05-07

ChinaXBMCer Wrote:Any chance you can incorporate an X-Forwarded-For http request header spoof like you did the Daily Show plugin for those of us outside the US?

http://forum.xbmc.org/archive/index.php/t-79148.html

Not sure how easily you could use Dimmuxx's fix for the Daily Show plugin, but it went like this:



Right now with a few ports blocked and the Firefox Modify Headers addon, I can watch Hulu abroad through Firefox - would love it to work in XBMC as well.
i'm going to try hacking a few US-only plugins with this and see if it makes them work in UK. seems almost too easy Wink

CrippledIguana Wrote:Anyone found a solution? I was so pumped to find this plugin but it looks like I can't get anything to play.

for now you can use icefilms addon, it provides most of the same content


- highlandsun - 2011-07-23

Nice to see Bluecop has continued to run with this. The get-flash-videos plugin needs to get some corresponding updates, they haven't updated since February.


- BlueCop - 2011-07-25

it was nice to see you resurrect it to begin with. thanks for all the rtmpdump work. it is much appreciated.


- mr.b - 2011-07-25

BlueCop,

is there a time-to-live on the SMIL? what are your thoughts on any pre-processing or caching of smil and/or other data either 1)on the local machine on which XBMC runs, or 2)some other machine whether it be on the same network or publicly accessible on the internet. It might even be something that could be run on GoogleAppEngine if none of the required python libs are c-based or require socket connections.


- BlueCop - 2011-07-25

the rtmp auth tokens expire. it is minutes but I am not sure the exact time. I am not sure cacheing will be very effective because you'll need a new smil to get a newer auth token anyway.


- mr.b - 2011-07-25

BlueCop Wrote:the rtmp auth tokens expire. it is minutes but I am not sure the exact time. I am not sure cacheing will be very effective because you'll need a new smil to get a newer auth token anyway.

k, gotcha, thanks for the explanation.

what about general episode data for some of your plugins. What if there was a repo which had, for purposes of illustration (I haven't thought it all the way through), a sqlite DB updated on some timely bases (daily/hourly/whatever) and/or updates stored in timestamped SQL-dumps. The idea is that the plugin wouldn't have to do all of the HTTP/HTML requests and processing (beautifulsoup,etc). Just brainstorming a bit - I've been trying to work through some ways to optimize plugins - even started a thread re: persistence in the script dev forum but no one seems to have anything to say on it. If you'd prefer to take this discussion elsewhere let me know.

thanks