SVN: toys/rsget.pl/Video/YouTube

sparky sparky at pld-linux.org
Sun Oct 4 17:45:15 CEST 2009


Author: sparky
Date: Sun Oct  4 17:45:15 2009
New Revision: 10680

Modified:
   toys/rsget.pl/Video/YouTube
Log:
- fix file name


Modified: toys/rsget.pl/Video/YouTube
==============================================================================
--- toys/rsget.pl/Video/YouTube	(original)
+++ toys/rsget.pl/Video/YouTube	Sun Oct  4 17:45:15 2009
@@ -16,7 +16,8 @@
 	GET( "http://www.youtube.com/watch?v=$-{v}" );
 
 	! m{<meta name="title" content="(.*?)">};
-	my $name = $1;
+	my $name = de_ml( $1 );
+	$name =~ s{/}{_}g;
 
 	! /"fmt_map"\s*:\s*"(.*?)"/;
 	my %fmts = map { m{(\d+)/}; $1 => $_ } split ",", uri_unescape( $1 );


More information about the pld-cvs-commit mailing list