]> git.pld-linux.org Git - packages/rsget.git/commitdiff
- initial
authoramateja <amateja@pld-linux.org>
Tue, 13 Oct 2009 06:27:57 +0000 (06:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rsget.patch -> 1.1

rsget.patch [new file with mode: 0644]

diff --git a/rsget.patch b/rsget.patch
new file mode 100644 (file)
index 0000000..7317f20
--- /dev/null
@@ -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/")
This page took 0.096714 seconds and 4 git commands to generate.