SVN: toys/fun/rsget.pl

sparky sparky at pld-linux.org
Mon Jun 8 14:39:16 CEST 2009


Author: sparky
Date: Mon Jun  8 14:39:16 2009
New Revision: 10385

Modified:
   toys/fun/rsget.pl
Log:
- MU does not require cookies now


Modified: toys/fun/rsget.pl
==============================================================================
--- toys/fun/rsget.pl	(original)
+++ toys/fun/rsget.pl	Mon Jun  8 14:39:16 2009
@@ -1069,18 +1069,13 @@
 	@ISA = qw(Get);
 }
 
-my $mucookie = 0;
 sub new
 {
 	my $proto = shift;
 	my $class = ref $proto || $proto;
 	my $url = shift;
 
-	++$mucookie;
-	my $cookie = ".cookie.mu.$mucookie.txt";
-	unlink $cookie if -e $cookie;
-
-	Get::makenew( "MU", $class, $url, cookies => $cookie );
+	Get::makenew( "MU", $class, $url );
 }
 
 sub stage1
@@ -1168,12 +1163,6 @@
 	$self->download();
 }
 
-sub DESTROY
-{
-	my $self = shift;
-	unlink $self->{cookies};
-}
-
 $getters{MU} = {
 	uri => qr{(?:www\.)?mega(upload|porn)\.com/\?d=.*?},
 	add => sub { Get::MegaUpload->new( @_ ) },


More information about the pld-cvs-commit mailing list