in reply to
Re^5: using WWW::YouTube::Download?
in thread using WWW::YouTube::Download?
I have looked at get-flash-videos recent issues and the issue 453 suggests to use a recent version from git. I have been able to download youtube videos with this recent version.
I had the same problem with error 404 when downloading YouTube videos and I solved it.
After frustrating, cursing, losing a few hairs and having a few more turn gray, I found the problem.
When you copy a URL from a YouTube video in Firefox (or presumably another browser) you get something like this:
you want to remove this portion of the string:
The above string is for the browser, or for flash player, but is not a part of the video address string.
YOU WANT THIS:
When I called download with this string (with "feature_player" removed) it worked like a charm.
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (200 votes),