Permalink
Browse files

+ rutracker.org kludges

  • Loading branch information...
l29ah committed Mar 14, 2011
1 parent 8cdfc4a commit 48b076a9452c1015a9655fae26a0f570aa27a443
Showing with 13 additions and 0 deletions.
  1. +6 −0 rutracker.org/tsruget
  2. +7 −0 rutracker.org/tsrulogin
View
@@ -0,0 +1,6 @@
#!/bin/bash
# Usage: $0 <cookie jar> <torrent url>
n="`echo -n "$2" | sed -e 's/.*t=//'`"
# Stupid curl can't deal with several -b flags
c="`sed -ne 's/.*bb_data\t\(.*\)$/bb_data=\1/p' $1 | sed q`"
curl -v -b "$c; bb_dl=$n" -d '' "http://dl.rutracker.org/forum/dl.php?t=$n"
View
@@ -0,0 +1,7 @@
#!/bin/bash
# Usage: $0 <cookie jar>
read u p < ~/.config/torrentsru
u="`echo -n $u | urlencode`"
p="`echo -n $p | urlencode`"
c="$1"
curl -c "$c" http://login.rutracker.org/forum/login.php -d "login_username=$u&login_password=$p&login=%C2%F5%EE%E4"

0 comments on commit 48b076a

Please sign in to comment.