giavoni / get-flash-videos

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

Hulu plugin now out of date. #403

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. get_flash_videos [hulu url]

What is the expected output? What do you see instead?
1 plugin installed:
- Hulu.pm
Downloading http://www.hulu.com/watch/331326#s-p1-so-i0
-> GET http://www.hulu.com/watch/331326#s-p1-so-i0
<- 200 text/html; charset=utf-8 (222825)
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Hulu.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Static.pm
Trying to open plugin ~/.get_flash_videos/plugins/Huluim.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Static.pm
Trying to open plugin ~/.get_flash_videos/plugins/Huluim.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Brightcove.pm
Trying to open plugin ~/.get_flash_videos/plugins/Mtvnservices.pm
Trying to open plugin ~/.get_flash_videos/plugins/Gawker.pm
Using method 'generic' for http://www.hulu.com/watch/331326#s-p1-so-i0
Found false;

Guessed http://www.hulu.com/watch/false; trying...
Exists on http://www.hulu.com/watch/false;: 404
Found false

Guessed http://www.hulu.com/watch/false trying...
Exists on http://www.hulu.com/watch/false: 404
Found /site-player/load_player_v2.js
Guessed http://www.hulu.com/site-player/load_player_v2.js trying...
Exists on http://www.hulu.com/site-player/load_player_v2.js: 200
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Static.pm
Trying to open plugin ~/.get_flash_videos/plugins/Huluim.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Static.pm
Trying to open plugin ~/.get_flash_videos/plugins/Huluim.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Using method 'generic' for http://www.hulu.com/site-player/load_player_v2.js
-> GET http://www.hulu.com/site-player/load_player_v2.js
<- 206 application/x-javascript (1393)
Tried http://www.hulu.com/site-player/load_player_v2.js, but no video URL found
Found /account/authenticate;
Guessed http://www.hulu.com/account/authenticate; trying...
Exists on http://www.hulu.com/account/authenticate;: 302
Redirected to https://secure.hulu.com/account/authenticate; (404)
Found /account/authenticate;
Guessed http://www.hulu.com/account/authenticate; trying...
Exists on http://www.hulu.com/account/authenticate;: 302
Redirected to https://secure.hulu.com/account/authenticate; (404)
Found /social;
Guessed http://www.hulu.com/social; trying...
Exists on http://www.hulu.com/social;: 404
Found /social;
Guessed http://www.hulu.com/social; trying...
Exists on http://www.hulu.com/social;: 404
Found /watch/(.*)
Guessed http://www.hulu.com/watch/(.*) trying...
Exists on http://www.hulu.com/watch/(.*): 404
Found #activities-container
Guessed http://www.hulu.com/watch/331326#activities-container trying...
Exists on http://www.hulu.com/watch/331326#activities-container: 200
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Static.pm
Trying to open plugin ~/.get_flash_videos/plugins/Huluim.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Static.pm
Trying to open plugin ~/.get_flash_videos/plugins/Huluim.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Using method 'generic' for http://www.hulu.com/watch/331326#activities-container
-> GET http://www.hulu.com/watch/331326#activities-container
<- 206 text/html; charset=utf-8 (10001)
Tried http://www.hulu.com/watch/331326#activities-container, but no video URL 
found
Found Behaviors.is_auth_video);

Guessed http://www.hulu.com/watch/Behaviors.is_auth_video); trying...
Exists on http://www.hulu.com/watch/Behaviors.is_auth_video);: 404
Error: No URLs found at /usr/share/perl5/FlashVideo/Generic.pm line 128.

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: /usr/bin/get_flash_videos --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.

What version of the product are you using? On what operating system?
latest
ubuntu

Original issue reported on code.google.com by krazyja...@gmail.com on 18 Jul 2012 at 7:25

GoogleCodeExporter commented 9 years ago
You installation seems broken. gfv claims that the Hulu plugin is installed:

  1 plugin installed:
  - Hulu.pm

However, it using the generic mode to download from Hulu:

  Using method 'generic' for http://www.hulu.com/watch/331326#s-p1-so-i0

This is not right, you should see:

  Using method 'hulu' for http://www.hulu.com/watch/331326#s-p1-so-i0

I tested using the URL that you mentioned and it works fine for me:

  Family_Guy-S10E14-Be_Careful_What...Fish_for.flv: 10% (19280.42 / 185388.62 KiB)

I suspect this might be because of a recent update to the Hulu plugin which 
used a Perl module which is deprecated in Debian/Ubuntu. The easiest solution 
is probably to download 
http://gitorious.org/get-flash-videos-plugins/gfv-plugins/blobs/master/Hulu.pm 
and copy it to your ~/.get_flash_videos/plugins directory, overwriting the 
existing file.

Original comment by zakflash...@gmail.com on 21 Jul 2012 at 8:53

GoogleCodeExporter commented 9 years ago
I am having the same problem, I tried Comment #1's suggestion of downloading 
the plugin directly from the link provided, and it still does the same thing: 
Uses 'generic' rather than 'hulu'

Original comment by johnson....@gmail.com on 30 Jul 2012 at 4:07

GoogleCodeExporter commented 9 years ago
same thing for me. new installation of lubuntu 12.04:

1 plugin installed:
- Hulu.pm
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Hulu.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Trying to open plugin ~/.get_flash_videos/plugins/Brightcove.pm
etc.
Using method 'generic' for http://www.hulu.com/watch/..... :(

same thing as the first poster. tried the link you provided, no workie.
any help appreciated :)

Original comment by marvelou...@gmail.com on 12 Aug 2012 at 1:50

GoogleCodeExporter commented 9 years ago
Ok, several people seem to be having this problem as I don't use Ubuntu I don't 
know why. To try to figure out, please clone the latest code from git 
(https://github.com/monsieurvideo/get-flash-videos.git), change into the 
directory and run:

  perl -Ilib -c ~/.get_flash_videos/plugins/Hulu.pm

You should normally see:

  /home/snakes/.get_flash_videos/plugins/Hulu.pm syntax OK

If you don't see this, please paste the output.

Original comment by zakflash...@gmail.com on 14 Aug 2012 at 7:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Seems to be working fine now.

Original comment by alphadel...@gmail.com on 1 Mar 2013 at 2:53

GoogleCodeExporter commented 9 years ago
I can reproduce the problem on OpenBSD, I get the same result, plugin is seen 
as installed, but not used. This happens if the permissions for Hulu.pm are 
incorrectly set, the plugin can be seen but can't be read. Compile issues would 
come after "Using Method 'hulu' ". This plugin works on Debian / OpenBSD, 
problems look specific to Lubuntu/ubuntu, SELinux is present on both of these 
something else that might cause problems.

Without more details nothing more can be done to resolve this.

This is what would happen with wrong permissions, when attempted to compile...

$ perl -Ilib -c ~/.get_flash_videos/plugins/Hulu.pm
Can't open perl script "/home/ntayl01/.get_flash_videos/plugins/Hulu.pm": 
Permission denied

Not closing this issue just yet, leaving for consideration maybe adding some 
trouble shooting info is an idea, such as above to compile / check plugins such 
as Hulu.pm. Other than that I suggest this is closed.

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

GoogleCodeExporter commented 9 years ago
Works on Ubuntu for me.

Original comment by alphadel...@gmail.com on 1 Mar 2013 at 7:01

GoogleCodeExporter commented 9 years ago
Closing this as possible cause is permissions / wrongly installed, unless the 
originators provide more feedback can't progress so closing.

Original comment by njtaylor...@gmail.com on 3 Mar 2013 at 1:38

GoogleCodeExporter commented 9 years ago
I have the same problem on Mac OS X. I've never coded in perl, but I hacked 
through the code and this is what I've found after forcing the main script to 
load the hulu package instead of the generic method:

Error: Can't locate object method "find_video" via package 
"FlashVideo::Site::Hulu"

Somehow the check
$possible_package->can("find_video")
in sub _find_package_url fails to validate that find_video indeed exists in 
Hulu.pm

Original comment by nieb...@gmail.com on 4 Apr 2013 at 3:00

GoogleCodeExporter commented 9 years ago
Ref #11 - Did you notice this was closed. Does not appear on the list of open 
problems. So new comments will get overlooked.

Did you do as per #8 and try the compile.
Which get-flash-video are you using - combined-get_flash_videos, 
get_flash_videos or a git version.

The package is loaded in the _load using the require $package. The @INC is 
modified and includes a sub plugin_loader which removes the FlashVideos::Site, 
and returns an opened filehandle to the plugin, if this open fails then the 
plugin won't be found, or included.

The check $possible_package->can("find_video"); is called multiple times. there 
could be a replacement plugin or the plugin itself

get_flash_videos has been modified, for failures it will report the error. Like 
this..

$ perl -Ilib get_flash_videos http://hulu.com/         
Failed to open plugin ~/.get_flash_videos/plugins/Hulu.pm Permission denied
Failed to open plugin ~/.get_flash_videos/plugins/Hulu.pm Permission denied
Using method 'generic' plugin version 0.01 for http://hulu.com/
.....

without permissions issues then....
$ perl -Ilib get_flash_videos http://hulu.com/ 
Using method 'hulu' plugin version 0.01 for http://hulu.com/
Downloading http://hulu.com/
Error: Couldn't get Hulu CID or EID at 
/loader/0x2d177a24880/FlashVideo/Site/Hulu.pm line 91.

This may not be your issue...

Original comment by njtaylor...@gmail.com on 4 Apr 2013 at 3:15

GoogleCodeExporter commented 9 years ago
Ref #12:
Thanks for the reply. I noticed it's closed, let me know if we should move the 
conversation somewhere else.

version:
./get_flash_videos --version
get_flash_videos version 1.24 (http://code.google.com/p/get-flash-videos/)

regarding compilation as in #8:
$ perl -Ilib -c ~/.get_flash_videos/plugins/Hulu.pm
Can't locate FlashVideo/JSON.pm in @INC (@INC contains: lib 
/opt/local/lib/perl5/site_perl/5.12.4/darwin-thread-multi-2level 
/opt/local/lib/perl5/site_perl/5.12.4 
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level 
/opt/local/lib/perl5/vendor_perl/5.12.4 
/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level 
/opt/local/lib/perl5/5.12.4 /opt/local/lib/perl5/site_perl 
/opt/local/lib/perl5/vendor_perl .) at [edited_home] 
./get_flash_videos/plugins/Hulu.pm line 9.
BEGIN failed--compilation aborted at 
[edited_path]/.get_flash_videos/plugins/Hulu.pm line 9.

So the problem is definitely not about permissions.

Also, my perl version:

perl --version
This is perl 5, version 12, subversion 4 (v5.12.4) built for 
darwin-thread-multi-2level
Copyright 1987-2010, Larry Wall
...

So my problem is somehow related to loading the Hulu.pm plugin.  When the 
script is trying for several plugins, I see that it does find Hulu.pm, and can 
open the file returning the handle. 
However, it fails when checking for the sub "find_video" as I mentioned above. 
That is, the call
$possible_package->can("find_video")
returns as find_video was not found.

As expected, when all plugins fail, the main program reverts to generic, so I 
see:

Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Hulu.pm
Trying to open plugin ~/.get_flash_videos/plugins/Com.pm
Using method 'generic' for http://www.hulu.com/watch/331326

I am not sure why the main script can open the plugin file but it does not find 
the functions in it... Do you have any ideas?

Original comment by nieb...@gmail.com on 4 Apr 2013 at 4:49

GoogleCodeExporter commented 9 years ago
I can see these comments being updated, so ok to continue. Others might not see 
them.

get_flash_videos 1.24 is an old version, the later version built/created from 
git have a version 1.25. There are different ways of running, installing, 
your's looks to be get_flash_videos-1.24, try downloading 
get_flash_videos-1.24-git-20130307, or use the git version.

Perl 5.12 is the same.

Compiling will only work if git or packaged version is used. The -I lib should 
contain
lib/FlashVideo/ which would have the JSON.pm in it. Rather than git you can 
download App-get_flash_videos-1.24.20130307.tgz this extracts into 
App-get_flash_videos-1.24.20130307, 
cd App-get_flash_videos-1.24.20130307
perl -Ilib -c ~/.get_flash_videos/plugins/Hulu.pm

That should compile without errors, your have the missing FlashVideo::JSON.

Later version requires Module::Find.

A git clone would give you the version I amended.

Besides permissions any compile error will result in the same issue as 
reported. That could just mean your missing a module.

Modified URLFinder.pm - Will output on compile failure...

$ perl -Ilib ./get_flash_videos http://www.hulu.com/watch/331326 
Not loading FlashVideo::Site::Hulu Can't locate Carp11.pm in .... at 
/loader/0xd309a14cb50/FlashVideo/Site/Hulu.pm line 14.
BEGIN failed--compilation aborted at 
/loader/0xd309a14cb50/FlashVideo/Site/Hulu.pm line 14.
Compilation failed in require at (eval 41) line 2.

Using method 'generic' plugin version 0.01 for http://www.hulu.com/watch/331326
Downloading http://www.hulu.com/watch/331326
Couldn't download 'http://www.hulu.com/watch/331326': 404 Not Found
....

Or this if ok.

$ perl -Ilib ./get_flash_videos http://www.hulu.com/watch/331326 
Using method 'hulu' plugin version 0.01 for http://www.hulu.com/watch/331326
Downloading http://www.hulu.com/watch/331326
Couldn't download 'http://www.hulu.com/watch/331326': 404 Not Found
Found Hulu CID: 60039910
Found Hulu EID: DuEGLaLIzPMbjOOC1e4bMA
....

Original comment by njtaylor...@gmail.com on 4 Apr 2013 at 6:34

GoogleCodeExporter commented 9 years ago
Thank you. Using the repository version worked for me.

Original comment by nieb...@gmail.com on 5 Apr 2013 at 2:03

GoogleCodeExporter commented 9 years ago
Hasn't pinpointed the exact problem that occured, later versions should display 
errors, if a problem does occur. Considered Fixed and Closed.

Original comment by njtaylor...@gmail.com on 5 Apr 2013 at 10:19