edelmoral / get-flash-videos

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

Failing with youtube video #570

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to download https://www.youtube.com/watch?v=JYEfJhkPK7o I see:

Error: Couldn't download URL: 301 Moved Permanently at 
/usr/share/perl5/FlashVideo/Site/Youtube.pm line 392.

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
at http://code.google.com/p/get-flash-videos/ making sure you include
the output with --debug enabled. Alternatively, fix it yourself and send us
a pull request on Github: https://github.com/monsieurvideo/get-flash-videos
Couldn't download any videos.

The full debug output is attached.

Original issue reported on code.google.com by nao...@gmail.com on 2 Jul 2014 at 8:18

Attachments:

GoogleCodeExporter commented 8 years ago
I have seen some youtube URLs  failing on a 301 redirect that is empty. 
However,if I try a second time, they often work. Debug example attached. Not 
sure if there is a youtube or a get_flash_video problem.

[pwalden@walden3 Videos]$ ~/Download/get-flash-videos/get_flash_videos-1.25 -d 
'http://www.youtube.com/watch?v=GegxWRMH5Zk&feature=youtube_gdata'
No plugins installed
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Using method 'youtube' plugin version 0.01 for 
http://www.youtube.com/watch?v=GegxWRMH5Zk&feature=youtube_gdata
Downloading http://www.youtube.com/watch?v=GegxWRMH5Zk&feature=youtube_gdata
-> GET http://www.youtube.com/watch?v=GegxWRMH5Zk&feature=youtube_gdata
<- 301 text/html; charset=utf-8 (0): UTF8 on, ASCII, 0 characters 0 bytes
Error: Couldn't download URL: 301 Moved Permanently at 
/home/pwalden/Download/get-flash-videos/get_flash_videos-1.25 line 10371.

Original comment by pcwal...@comcast.net on 6 Aug 2014 at 9:00

Attachments:

GoogleCodeExporter commented 8 years ago
More on this...sometimes I have to try the download a half dozen times before 
it works.

Original comment by pcwal...@comcast.net on 7 Aug 2014 at 7:41

GoogleCodeExporter commented 8 years ago
This sporatic 301 return problem is happenning all the time now. I find I have 
to retry at once and usual several times before a successful download,

Is the "301 text/html; charset=utf-8 (0): UTF8 on, ASCII, 0 characters 0 bytes" 
a bougus return with 0 bytes?

Otherwise I would expect get_flash_video to redirect to the new URL

Original comment by pcwal...@comcast.net on 14 Aug 2014 at 10:39

GoogleCodeExporter commented 8 years ago
The 301 error is happening all the time now for me. I can no longer download.

Original comment by pcwal...@comcast.net on 4 Dec 2014 at 5:05

GoogleCodeExporter commented 8 years ago
Patched Youtube.pm sub verify_age to accept both 301 and 302 redirects.

Line 382 now looks like:

if ($browser->response->code == 301 || $browser->response->code == 302) {

Original comment by pcwal...@comcast.net on 4 Dec 2014 at 5:52

Attachments:

GoogleCodeExporter commented 8 years ago
You change has been added, thanks. plugin version changed to 0.02.

Issue will be closed if no more problems

Original comment by njtaylor...@gmail.com on 7 Dec 2014 at 4:04