From 7425722bedb30d1c593212c4970d46ce56080152 Mon Sep 17 00:00:00 2001 From: cxford Date: Mon, 17 Oct 2016 10:55:18 -0500 Subject: [PATCH] Update for changes to 1337x.to --- 1337x.torrentengine.sample | 4 ++-- wolfpack | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/1337x.torrentengine.sample b/1337x.torrentengine.sample index bfd2015..8d4090f 100644 --- a/1337x.torrentengine.sample +++ b/1337x.torrentengine.sample @@ -1,6 +1,6 @@ torrentengine="https://1337x.to/search/%s/1/" -torrentterms='printf https://1337x.to; grep "/torrent/" | head -n 1 | cut -f 2 -d \"' +torrentterms='printf https://1337x.to; grep "/torrent/" | head -n 1 | cut -f 10 -d \"' magnetposition='4' -torrentdebugging='false' searchunifier='+' magnetseparator=\" +torrentdebugging='true' diff --git a/wolfpack b/wolfpack index 6336452..2bf97c4 100755 --- a/wolfpack +++ b/wolfpack @@ -74,7 +74,7 @@ function torrent { export searchstring="$(echo $i | sed 's/ /+/g')" export searchlink="$(printf "$torrentengine" "$searchstring")" export searchresult=$(wget -q -O - "$searchlink" | bash -c "$torrentterms") - export magnetlink=$(wget -q -O - "$searchresult" | grep 'magnet:?' | cut -f $magnetposition -d $magnetseparator) + export magnetlink=$(wget -q -O - "$searchresult" | grep 'magnet:?' | head -n 1 |cut -f $magnetposition -d $magnetseparator) if [ $torrentdebugging == "true" ]; then echo $searchstring echo $searchlink