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.
- debug.txt 9.46KB
Comment #1
Posted on Aug 6, 2014 by Happy BirdI 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.
- dbg.txt 15.19KB
Comment #2
Posted on Aug 7, 2014 by Happy BirdMore on this...sometimes I have to try the download a half dozen times before it works.
Comment #3
Posted on Aug 14, 2014 by Happy BirdThis 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
Comment #4
Posted on Dec 4, 2014 by Happy BirdThe 301 error is happening all the time now for me. I can no longer download.
Comment #5
Posted on Dec 4, 2014 by Happy BirdPatched 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) {
- Youtube.pm 14.09KB
Comment #6
Posted on Dec 7, 2014 by Massive CamelYou change has been added, thanks. plugin version changed to 0.02.
Issue will be closed if no more problems
Status: Started
Labels:
Type-Defect
Priority-Medium