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