flocascio / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

hulu.pm issue #478

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Getting this error today...

Error: encrypt: datasize not multiple of blocksize (16 bytes) at 
/loader/0x966a688/FlashVideo/Site/Hulu.pm line 582.

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm the site is using Flash video and if you have Flash available
check that the URL really works(!).

Check for updates by running: ./get_flash_videos --update

Original issue reported on code.google.com by rubiohig...@gmail.com on 7 Mar 2013 at 1:53

GoogleCodeExporter commented 8 years ago
debug file attached

Original comment by rubiohig...@gmail.com on 7 Mar 2013 at 1:57

Attachments:

GoogleCodeExporter commented 8 years ago
Also confirming this error. See attached debug text

Original comment by bunnios...@gmail.com on 7 Mar 2013 at 2:02

Attachments:

GoogleCodeExporter commented 8 years ago
confirmed on 2 different Mint 13 machines, one a fresh install, both working 2 
days ago

Original comment by bill9...@gmail.com on 7 Mar 2013 at 6:24

Attachments:

GoogleCodeExporter commented 8 years ago
Note the "NO_MORE_RELEASES_PLEASE_60188302".  I wonder if that's a message...

-> GET http://r.hulu.com/videos?eid=CI3kAyDgplz8B5rdWhRS1w
<- 200 application/xml; charset=utf-8 (8528)
Found Hulu encrypted PID: NO_MORE_RELEASES_PLEASE_60188302
Decrypted Hulu PID: 'NO_MORE_RELEASES_PLEASE_60188302'
Auth: df0af975da03296612bc60a64d250d66
Hulu SMIL URL: 
http://s.hulu.com/select?device_id=6E42EB362CD8768355D75DE6B7389D21&dp_id=Hulu&e
nable_fa=1&ep=1&language=en&np=1&pp=Desktop®ion=US&token=IpB5uMr9ftZc3Tk2ue7HGg
&ts=1362694441&v=888324234&video_id=&vp=1&bcs=e4bcfa40c14d71caf6c7f2cea77412fe
-> GET 
http://s.hulu.com/select?device_id=6E42EB362CD8768355D75DE6B7389D21&dp_id=Hulu&e
nable_fa=1&ep=1&language=en&np=1&pp=Desktop®ion=US&token=IpB5uMr9ftZc3Tk2ue7HGg
&ts=1362694441&v=888324234&video_id=&vp=1&bcs=e4bcfa40c14d71caf6c7f2cea77412fe
<- 400 text/html (147)
Encrypted XML: '<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
    <h2>400 Bad Request</h2>
    <p></p>
    <pre id="traceback"></pre>
</body>
</html>'
XML decrypt key: 
4878B22E76379B55C962B18DDBC188D82299F8F52E3E698D0FAF29A40ED64B21, IV: 
WA7hap7AGUkevuth
Error: encrypt: datasize not multiple of blocksize (16 bytes) at 
/loader/0x9e13d1c/FlashVideo/Site/Hulu.pm line 582.

Original comment by alphadel...@gmail.com on 7 Mar 2013 at 10:17

GoogleCodeExporter commented 8 years ago
*sigh*  Genius Google thinks my comment is spam.

https://code.google.com/p/get-flash-videos/issues/detail?id=478#c4

Anyway, this issue came up nearly two years ago, so I'm not sure if it's Hulu 
saying "go away" or something else:

http://stream-recorder.com/forum/hulu-becoming-smarter-and-asking-no-more-t8641.
html

Original comment by alphadel...@gmail.com on 7 Mar 2013 at 10:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Same problem :(

Original comment by jkamin...@gmail.com on 8 Mar 2013 at 3:36

GoogleCodeExporter commented 8 years ago
I'm having the same issue. 

Original comment by jkamin...@gmail.com on 8 Mar 2013 at 4:00

GoogleCodeExporter commented 8 years ago
Just in case it helps I tried using Crypt::CBC instead of Crypt::Rijndael in 
Hulu.pm - no joy - new error message is.
Error: Ciphertext does not begin with a valid header for 'salt' header mode at 
/loader/0x9c5db44/FlashVideo/Site/Hulu.pm line 582
thanks to the creator(s) of get_flash_video and Hulu.pm - your work is greatly 
appreciated even if Hulu's recent change permanently disables the Hulu plug-in
I'm no programmer but if there's any brute-force or other time-consuming work a 
dummy can do I'd gladly volunteer

Original comment by bill9...@gmail.com on 8 Mar 2013 at 7:32

GoogleCodeExporter commented 8 years ago
There are problems with the issues / comments, from support it appears to be 
something to do with anti-virus, delete comments in some cases can be restored, 
and deleted issues can be restored. I could view just couldn't restore some.

The Hulu problem must be a recent site change, Hulu is maintained seperately 
from the rest of gfv. I shall have a look around and see if other Hulu 
download/play have been having problems, they might have a solution.

Original comment by njtaylor...@gmail.com on 8 Mar 2013 at 10:15

GoogleCodeExporter commented 8 years ago
The Hulu plugin isn't getting the video_id.

Here's a quick patch.

--- Hulu.pm.old 2012-10-06 04:26:29.000000000 -0400
+++ Hulu.pm 2013-03-08 17:16:39.000000000 -0500
@@ -73,7 +73,7 @@
   my $page_url = $browser->uri->as_string;

   my ($cid, $eid);
-  if ($browser->content =~ m{huluim[.]com/[^/]+/(\d{4,})[?]size}) {
+  if ($browser->content =~ m{huluim[.]com/[^/]+/(\d{4,})[?].*size}) {
     $cid = $1;
     info "Found Hulu CID: $cid";
   }

Original comment by tmavroi...@gmail.com on 8 Mar 2013 at 10:25

Attachments:

GoogleCodeExporter commented 8 years ago
That seems to make a difference, I can't get a download to work, it may be 
stopped for those outside the US. Need someone else to try.

Original comment by njtaylor...@gmail.com on 8 Mar 2013 at 10:44

GoogleCodeExporter commented 8 years ago
Yep, the patch fixed it.

Original comment by alphadel...@gmail.com on 8 Mar 2013 at 10:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
To get rid of the misleading blocksize error, I made the plugin die on a bad 
request.

Here's an amended patch.

Original comment by tmavroi...@gmail.com on 8 Mar 2013 at 10:59

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry for the noob question but can anyone tell me how to apply the patch in 
windows? I saw the last time this happened thread and they suggested getting 
patch.exe for gnuwin32 which I did but can't figure out how to patch the hulu 
plugin. Thanks in advance. Very thankful for this project. 

Original comment by jkamin...@gmail.com on 8 Mar 2013 at 11:00

GoogleCodeExporter commented 8 years ago
Got it figured out. Copied patch.exe to the same place as the hulu.pm file. 
Renamed the .patch to a .txt file. Then ran the command 

patch --binary Hulu.pm hulu.txt

It's working now. You may need gnuwin32 installed, as I was already using wget 
on Windows. Something tells me I should be on linux at this point :)

Anyway thank you for the patch!

Original comment by jkamin...@gmail.com on 8 Mar 2013 at 11:14

GoogleCodeExporter commented 8 years ago
confirming patch fixed on Linux in US - thanks so much tmavroi

Original comment by bill9...@gmail.com on 9 Mar 2013 at 12:15

GoogleCodeExporter commented 8 years ago
Patch works. If you are on Linux and have downloaded the above patch to your 
home directory, "~", then apply the patch like so:

patch --binary ~/.get_flash_videos/plugins/Hulu.pm hulu.patch

Original comment by james.ha...@gmail.com on 9 Mar 2013 at 8:44

GoogleCodeExporter commented 8 years ago
how do you apply the patch on windows? and which patch from above do i d/l? 
there are two sizes?

Original comment by lebow0...@gmail.com on 18 Mar 2013 at 11:33

GoogleCodeExporter commented 8 years ago
#21 read the comments made in #17 #18 your need patch.exe, and download the 
patch in #16, the later is by the same person and as it say "Here is the 
amended patch"

Original comment by njtaylor...@gmail.com on 18 Mar 2013 at 11:44

GoogleCodeExporter commented 8 years ago
#22 i downloaded a patch.exe from 
http://gnuwin32.sourceforge.net/packages/patch.htm then renamed it to hulu.txt 
i then downloaded hulu.patch from above. where do i place these 2 files? im on 
windows 7. do i perl c:/flash/gfv patch --binary Hulu.pm hulu.txt

im confused?

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 12:44

GoogleCodeExporter commented 8 years ago
i dont know if i downloaded the correct exe, dont know if i placed the two 
files in the right folder and i dont know what command to type to update the 
hulu.pm file?

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 12:48

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The original Hulu.pm should be in your Home directory under 
.get_flash_vidos/plugins
In a comand window this would have been used to download it...

get_flash_videos --add-plugin 
http://gitorious.org/get-flash-videos-plugins/gfv-plugins/blobs/raw/release/Hulu
.pm

The patch.exe should not have been renamed. But placed in the same directory as 
the Hulu.pm.
The hulu.patch should have downloaded from here and renamed hulu.txt again 
saved in the same directory as Hulu.pm

You then run the command wen in the same directory as the two files and the 
patch.exe run this...
patch --binary Hulu.pm hulu.txt

The directory name Should be something like c:\Documents and 
Settings\<username>\.get_flash_videos\plugins
Where username is your login name, mine would be this
c:\Documents and Settings\ntay01\.get_iplayer\plugins

This is from Windows XP, Windows 7 might be the same or close.

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 1:17

GoogleCodeExporter commented 8 years ago
thank you for the help. i try to type "perl c:/flash/gfv 
http://www.hulu.com/watch/467600" and i get this:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Brett>perl c:/flash/gfv http://www.hulu.com/watch/467600
Subroutine FlashVideo::Utils::GetACP redefined at (eval 41) line 2.
Subroutine FlashVideo::Utils::GetACP redefined at (eval 43) line 2.
Downloading http://www.hulu.com/watch/467600
Using method 'hulu' for http://www.hulu.com/watch/467600
Enter Hulu username and passwordUsername: lebow0020@gmail.com
Ok, need your password:
Found Hulu CID: 60192602
Found Hulu EID: fHEoOUlbIfBFfg0bJGn-Ug
Using HD stream (p011)
Subroutine FlashVideo::Utils::GetACP redefined at (eval 54) line 2, <STDIN> line
 2.
'rtmpdump' is not recognized as an internal or external command,
operable program or batch file.
'aifp' is not recognized as an internal or external command,
operable program or batch file.
'slist' is not recognized as an internal or external command,
operable program or batch file.
'hgt' is not recognized as an internal or external command,
operable program or batch file.
'hgt_ver' is not recognized as an internal or external command,
operable program or batch file.
'aifp' is not recognized as an internal or external command,
operable program or batch file.
'slist' is not recognized as an internal or external command,
operable program or batch file.
'hgt' is not recognized as an internal or external command,
operable program or batch file.
'hgt_ver' is not recognized as an internal or external command,
operable program or batch file.
Download failed, no valid file downloaded
Couldn't download any videos.
C:\Users\Brett>

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 1:27

GoogleCodeExporter commented 8 years ago
The Hulu plugin is maintained on a seperate site. I can't update it.

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 1:31

GoogleCodeExporter commented 8 years ago
i get this error:

Subroutine FlashVideo::Utils::GetACP redefined at (eval 59) line 2, <STDI
 2.
'rtmpdump' is not recognized as an internal or external command,
operable program or batch file.
'aifp' is not recognized as an internal or external command,
operable program or batch file.
'slist' is not recognized as an internal or external command,
operable program or batch file.
'hgt' is not recognized as an internal or external command,
operable program or batch file.
'hgt_ver' is not recognized as an internal or external command,
operable program or batch file.
'aifp' is not recognized as an internal or external command,
operable program or batch file.
'slist' is not recognized as an internal or external command,
operable program or batch file.
'hgt' is not recognized as an internal or external command,
operable program or batch file.
'hgt_ver' is not recognized as an internal or external command,
operable program or batch file.
Download failed, no valid file downloaded
Couldn't download any videos.

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 3:16

GoogleCodeExporter commented 8 years ago
with the new patch installed this is the new error i get when i type in "perl 
c:/flash/get_flash_videos http://www.hulu.com/watch/467600".

C:\Users\Brett>perl c:/flash/get_flash_videos http://www.hulu.com/watch/467600
Subroutine FlashVideo::Utils::GetACP redefined at (eval 41) line 2.
Subroutine FlashVideo::Utils::GetACP redefined at (eval 43) line 2.
Downloading http://www.hulu.com/watch/467600
Using method 'hulu' for http://www.hulu.com/watch/467600
Enter Hulu username and passwordUsername:
Ok, need your password:
could not find ParserDetails.ini in C:/Perl/site/lib/XML/SAX
Found Hulu CID: (blanked out)
Found Hulu EID: (blanked out)
Using HD stream (p011)
Subroutine FlashVideo::Utils::GetACP redefined at (eval 71) line 2, <STDIN> line
 2.
'rtmpdump' is not recognized as an internal or external command,
operable program or batch file.
'aifp' is not recognized as an internal or external command,
operable program or batch file.
'slist' is not recognized as an internal or external command,
operable program or batch file.
'hgt' is not recognized as an internal or external command,
operable program or batch file.
'hgt_ver' is not recognized as an internal or external command,
operable program or batch file.
'aifp' is not recognized as an internal or external command,
operable program or batch file.
'slist' is not recognized as an internal or external command,
operable program or batch file.
'hgt' is not recognized as an internal or external command,
operable program or batch file.
'hgt_ver' is not recognized as an internal or external command,
operable program or batch file.
Download failed, no valid file downloaded
Couldn't download any videos.

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 3:53

GoogleCodeExporter commented 8 years ago
also, why i typed my password it doesnt show up in the cmd windows like my 
username does.

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 3:54

GoogleCodeExporter commented 8 years ago
why are my comments getting deleted? with the updated patch i get a new error i 
cant even post it. could someone please take a minute to help fix this issue. 
id greatly appreciate it.

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 3:55

GoogleCodeExporter commented 8 years ago
The comments are most likely getting deleted because they contain something 
that isn't considered valid, there is some sort of anti-virus scanner, that 
does this, it's outside of our control. If a problem then submit just basic 
text and use a site which allows you to paste content, and include the url in 
the comment.

The appears to be complains about rtmpdump not being found, your need to 
install this and ensure it is on the search path, in a cmd window type rtmpdump 
if not found it's not on the path. If can be found here.

http://rtmpdump.mplayerhq.hu/

Your find a link to this.

http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.4-git-010913-windows.zip

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 2:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i think i got it to work: http://shorttext.com/CQTbBC

how do i make sure it downloads the 1080p or 720p how can i change what quality 
i download?

also could i talk to you on gtalk i really need your help?

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 6:05

GoogleCodeExporter commented 8 years ago
If it's doing rtmpdump it should be working. These is an -r option for quality, 
however depends if the plugin implemented quality selection, can't use hulu 
outside US, so not one I use. rtmpdump aborts when I try.

Haven't used gtalk before - no idea how to. I really maintain this for myself, 
and OpenBSD. Appears that's a no gtalk not supported on OpenBSD, pidgin / 
empathy might work to some extent, if it's voice/webcam based my laptop died.

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 7:34

GoogleCodeExporter commented 8 years ago
i typw "perl c:/flash/get_flash_videos http://www.hulu.com/watch/15208" to 
download video. where do i add the "-r" in that command?

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 8:14

GoogleCodeExporter commented 8 years ago
The get_flash_videos options go after the scirpt and before the download url.

"perl c:/flash/get_flash_videos -r high http://www.hulu.com/watch/15208"

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 9:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i dont know if its working? it seems everthing i d/l comes out as 1280x720. 
what command should i use for SD quality? "-r low"? here is what happened: 

http://justpaste.it/283c

Original comment by lebow0...@gmail.com on 19 Mar 2013 at 10:00

GoogleCodeExporter commented 8 years ago
I looked at the code and it doesn't do quality selection, it always uses the 
highest quality it can find.

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 10:15

GoogleCodeExporter commented 8 years ago
Set the $quality variable in Hulu.pm to 2 instead of 0 and it will get
the 480p versions.

Original comment by alphadel...@gmail.com on 19 Mar 2013 at 10:45

GoogleCodeExporter commented 8 years ago
Thanks, find this line in Hulu.pm and change 0 to 2. 

 my $quality = 0; # Always go for the best TODO XXX

If unsure, keep a back up copy of Hulu.pm before attempting, Windows users may 
have to use an editor which copes with unix files or convert. If I recall 
notepad doesn't like unix files, wordpad or maybe notepad+ is ok.

What really needs to happen is the addition of the quality selection using the 
-r option.

Original comment by njtaylor...@gmail.com on 19 Mar 2013 at 11:59

GoogleCodeExporter commented 8 years ago
does hulu only play 720p or do they have 1080p? everything i d/l so far is only 
720p?

Original comment by lebow0...@gmail.com on 21 Mar 2013 at 9:08

GoogleCodeExporter commented 8 years ago
So i now cannot use this for anything with subtitles (which is mainly what i 
want from it). 

-------------------------------
E:\flash>perl gfv http://www.hulu.com/watch/228479 --subtitles
Downloading http://www.hulu.com/watch/228479
Using method 'hulu' for http://www.hulu.com/watch/228479
Enter Hulu username and passwordUsername:
Ok, need your password:
Found Hulu CID: 50134932
Found Hulu EID: Dq7-i_6KY5Q-8CIijLH0vQ
Error: Can't find Hulu subtitles - unexpected location XML structure at 
/loader/0x2f3818c/FlashVideo/Site/Hulu.pm line 155.

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm the site is using Flash video and if you have Flash available
check that the URL really works(!).

Check for updates by running: gfv --update

If the latest version does not support this please open a bug (or
contribute a patch!) at http://code.google.com/p/get-flash-videos/
make sure you include the output with --debug enabled.
Couldn't download any videos.
--------------------------------

Anyone else seen this or know of a solution? Thanks

Original comment by kaode...@gmail.com on 25 Mar 2013 at 2:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hey Guys

Any chance, one of you could send me the latest Hulu.pm. I used the patch, but 
anyway I am not able to download anything.

Original comment by ilir@ademi.org on 19 May 2013 at 10:34