pantiweara / get-flash-videos

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

Update Fails #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install get_flash_videos
2. Install the hulu plugin
3. Run 'get_flash_videos --update' to update

What is the expected output? What do you see instead?
Expect update successful. Instead I see:
get_flash_videos --update
You already have the latest version.
Can't locate Digest/SHA1.pm in @INC (@INC contains: CODE(0x20815a8) 
/usr/bin/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl .) at /home/admin/.get_flash_videos/plugins/Hulu.pm 
line 17.
BEGIN failed--compilation aborted at 
/home/admin/.get_flash_videos/plugins/Hulu.pm line 17.
Compilation failed in require at /usr/bin/get_flash_videos line 573.

What version of the product are you using? On what operating system?
Fresh install of Ubuntu 12.04 64-bit

Please provide any additional information below.
Same thing occurs with the get_flash_videos version from both the Ubuntu 
repository and the get-flash-videos website

Original issue reported on code.google.com by gesquive on 13 May 2012 at 4:45

GoogleCodeExporter commented 9 years ago
Tracked this down to the libdigest-sha1-perl package. In 12.04, the 
libdigest-sha1-perl package doesn't exist anymore, instead libdigest-sha-perl 
has taken it's place. To install the package, I ran:
'sudo apt-get install libdigest-sha-perl'

Next you have to change line 17 in ~/.get_flash_videos/plugins.Hulu.pm from:
'use Digest::SHA1 qw(sha1_hex);'
to:
'use Digest::SHA qw(sha1_hex);'

Now you can run 'get_flash_videos --update' to successfully update.

I didn't want to generate a git change since I believe these changes will make 
the script not backwards compatible.

Original comment by gesquive on 13 May 2012 at 4:54

GoogleCodeExporter commented 9 years ago
To make things easier for some people, I generated a patch file. For everyone 
else, all you have to do is:

1. Download hulu-sha.patch
2. sudo apt-get install libdigest-sha-perl
3. cd ~/.get_flash_videos/plugins
4. patch < /path/to/hulu-sha.patch

Make sure to replace '/path/to/' with the actual path to where you downloaded 
hulu-sha.patch too.

Original comment by gesquive on 13 May 2012 at 5:15

Attachments:

GoogleCodeExporter commented 9 years ago
Plugin fixed and pushed to Gitorious but you will probably have to download the 
update manually:
https://gitorious.org/get-flash-videos-plugins/gfv-plugins/blobs/raw/c011585d805
3bb40b717e1e1ac6df8c42c54fef6/Hulu.pm

Original comment by zakflash...@gmail.com on 3 Jul 2012 at 8:58