From: amateja Date: Tue, 13 Oct 2009 06:27:57 +0000 (+0000) Subject: - initial X-Git-Tag: auto/th/rsget-20091013-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frsget.git;a=commitdiff_plain;h=c48285c94678994cb471ee8c29ac148fdd72c0ff - initial Changed files: rsget.patch -> 1.1 --- diff --git a/rsget.patch b/rsget.patch new file mode 100644 index 0000000..7317f20 --- /dev/null +++ b/rsget.patch @@ -0,0 +1,39 @@ +--- rsget.sh.orig 2009-02-12 16:31:07.000000000 +0100 ++++ rsget.sh 2009-10-13 08:23:18.000000000 +0200 +@@ -3,7 +3,7 @@ + # Piotr Jachacy + # jachacy@gmail.com + # +-# ostatnia modyfikacja: 14.10.2008 ++# ostatnia modyfikacja: 13.10.2009 + # + # /* This program is free software. It comes without any warranty, to + # * the extent permitted by applicable law. You can redistribute it +@@ -49,6 +49,27 @@ + odliczanie $minuty + + pobierz $1 ++ elif [ -n "$(echo "$link" | grep "Currently a lot of users are downloading files.")" ] ++ then ++ minuty=$(echo "$link" | grep "Please try again in" | sed -e "s/.*in \([0-9]*\) minutes.*/\1/") ++ ++ echo "Serwer jest przeciążony. Musisz odczekać około $minuty minut" ++ ++ minuty=$[$minuty*60+30] ++ ++ odliczanie $minuty ++ ++ pobierz $1 ++ elif [ -n "$(echo "$link" | grep "We regret that currently we have no available slots for free users.")" ] ++ then ++ minuty=$(echo "$link" | grep "Unfortunately you will have to wait" | sed -e "s/.*wait \([0-9]*\) minutes.*/\1/") ++ echo "Brak wolnych slotów dla użytkowników darmowych. Musisz odczekać około $minuty minut" ++ ++ minuty=$[$minuty*60+30] ++ ++ odliczanie $minuty ++ ++ pobierz $1 + else + czas=$(echo "$link" | grep "var c" | sed -e "s/var c=\([0-9]*\);.*/\1/") +