SVN: toys/rsget.pl/Get/OdSiebie
sparky
sparky at pld-linux.org
Fri Sep 11 19:03:20 CEST 2009
Author: sparky
Date: Fri Sep 11 19:03:20 2009
New Revision: 10570
Modified:
toys/rsget.pl/Get/OdSiebie
Log:
- allow downloading mp3 files
Modified: toys/rsget.pl/Get/OdSiebie
==============================================================================
--- toys/rsget.pl/Get/OdSiebie (original)
+++ toys/rsget.pl/Get/OdSiebie Fri Sep 11 19:03:20 2009
@@ -13,10 +13,10 @@
ERROR( "some problem, file not found ?" )
if $-{_referer} =~ m{/(upload|error)\.html};
- m{<dl class="file-info">.*?<dd>(.*?)</dd>.*?<dd>\s*(\d+\.\d+ MB)</dd>}s;
- INFO( name => $1, size => $2 );
+ m{<dl class="file-info">.*?<dd.*?>(?:\s*<!--.*?-->\s*<!--.*?-->\s*)?(.*?)</dd>.*?<dd>\s*(\d+\.\d+ MB)</dd>}s;
+ INFO( name => $1, asize => $2 );
- ! m{href="(/pobierz/\d+---.*?\.html)"};
+ ! m{href="(/pobierz/\d+---.*?(\.html)?)"};
GET( $1 );
! m{href="(/download/\d+---.*?.html)"};
More information about the pld-cvs-commit
mailing list