Closed GoogleCodeExporter closed 9 years ago
Finally somebody reported this bug. I thought I was the only one that
encountered this bug.
It looks like that Hulu has changed the "videos" program on their
http://r.hulu.com/ that it no longer takes "content_id" as a acceptable
variable. It apparently replies 404 error when illegal arguments were passed to
it.
$ wget -U Mozilla -q -O -
http://www.hulu.com/watch/300844/law-and-order-special-victims-unit-educated-gue
ss |grep content_id
so.addVariable("content_id", 60004804);
$ wget -U Mozilla -q -S -O - http://r.hulu.com/videos?content_id=60004804
HTTP/1.0 404 Not Found
Retry-After: 0
Content-Type: text/plain
ntCoent-Length: 13
X-Varnish: 1017115836
Server: Varnish
Cache-Control: private
Date: Sun, 11 Dec 2011 06:27:35 GMT
Content-Length: 13
Connection: keep-alive
By doing some digging tonight, fortunately, I found that it still accepts the
"eid" argument:
$ wget -U Mozilla -q -O -
http://www.hulu.com/watch/300844/law-and-order-special-victims-unit-educated-gue
ss |grep 'embed src=' |sed -e 's/.*embed src="\([^"]\+\)".*/\1/g'
http://www.hulu.com/embed/BOb38xCgmJxccy0nScbznA
$ wget -U Mozilla -q -O - http://r.hulu.com/videos?eid=BOb38xCgmJxccy0nScbznA
|sed -e 's|.*\(<pid>.*</pid>\).*|\1\n|g'
<pid>NO_MORE_RELEASES_PLEASE_60004804</pid>
Based on my finding, I created a patch for a quick fix. Again, this patch is
kind of a dirty hack, but it works for me,
Original comment by storm.sf...@gmail.com
on 11 Dec 2011 at 6:55
Attachments:
[deleted comment]
Patch works great! Many thanks.
Original comment by annoyw...@gmail.com
on 12 Dec 2011 at 1:19
Yeah, patch worked for me as well. Thanks!
Original comment by gesquive
on 12 Dec 2011 at 1:22
Fixed in gitorious by merging a pull request on there. Run get_flash_videos
--update to get the latest version.
Storm: thanks for your fix, in future please clone on gitorious
(https://gitorious.org/get-flash-videos-plugins) and submit a merge request
there as it's easier to merge and you can get credited for the fix (if you
care). Please also comment on here though so people can find it. Also let me
know if want to be added to gfv-hackers on gitorious so you push directly.
Original comment by zakflash...@gmail.com
on 13 Dec 2011 at 9:49
Roger that and will do. I've just created my account on Gitorious. It probably
will take me some time to get used to the tools provided by Gitorious.
Original comment by storm.sf...@gmail.com
on 14 Dec 2011 at 11:50
Original issue reported on code.google.com by
annoyw...@gmail.com
on 11 Dec 2011 at 4:30