Issue 570 in get-flash-videos: Failing with youtube video

39 views
Skip to first unread message

get-flas...@googlecode.com

unread,
Jul 2, 2014, 4:18:48 PM7/2/14
to get-flas...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 570 by nao...@gmail.com: Failing with youtube video
http://code.google.com/p/get-flash-videos/issues/detail?id=570

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.

Attachments:
debug.txt 9.5 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

get-flas...@googlecode.com

unread,
Aug 6, 2014, 5:00:57 PM8/6/14
to get-flas...@googlegroups.com

Comment #1 on issue 570 by pcwal...@comcast.net: Failing with youtube video
http://code.google.com/p/get-flash-videos/issues/detail?id=570

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.






Attachments:
dbg.txt 15.2 KB

Nigel Taylor

unread,
Aug 7, 2014, 10:43:40 AM8/7/14
to get-flas...@googlegroups.com
On 08/06/14 22:00, get-flas...@googlecode.com wrote:
>
> Comment #1 on issue 570 by pcwal...@comcast.net: Failing with youtube video
> http://code.google.com/p/get-flash-videos/issues/detail?id=570
>
> 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.
>
>
>
>
>
>
> Attachments:
> dbg.txt 15.2 KB
>
I have seen the same problem. The fact it sometimes works is strange,
not all youtube servers returning the same, not sure if get_flash_videos
should cope or not. Need to look closely at what going on.


get-flas...@googlecode.com

unread,
Aug 7, 2014, 3:41:55 PM8/7/14
to get-flas...@googlegroups.com

Comment #2 on issue 570 by pcwal...@comcast.net: Failing with youtube video
http://code.google.com/p/get-flash-videos/issues/detail?id=570

More on this...sometimes I have to try the download a half dozen times
before it works.

get-flas...@googlecode.com

unread,
Aug 14, 2014, 6:39:18 PM8/14/14
to get-flas...@googlegroups.com

Comment #3 on issue 570 by pcwal...@comcast.net: Failing with youtube video
http://code.google.com/p/get-flash-videos/issues/detail?id=570

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

get-flas...@googlecode.com

unread,
Dec 4, 2014, 12:05:38 PM12/4/14
to get-flas...@googlegroups.com

Comment #4 on issue 570 by pcwal...@comcast.net: Failing with youtube video
https://code.google.com/p/get-flash-videos/issues/detail?id=570

The 301 error is happening all the time now for me. I can no longer
download.

get-flas...@googlecode.com

unread,
Dec 4, 2014, 12:52:29 PM12/4/14
to get-flas...@googlegroups.com

Comment #5 on issue 570 by pcwal...@comcast.net: Failing with youtube video
https://code.google.com/p/get-flash-videos/issues/detail?id=570

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) {

Attachments:
Youtube.pm 14.1 KB

get-flas...@googlecode.com

unread,
Dec 7, 2014, 11:04:40 AM12/7/14
to get-flas...@googlegroups.com
Updates:
Status: Started

Comment #6 on issue 570 by njtaylor...@gmail.com: Failing with youtube video
https://code.google.com/p/get-flash-videos/issues/detail?id=570

You change has been added, thanks. plugin version changed to 0.02.

Issue will be closed if no more problems
Reply all
Reply to author
Forward
0 new messages