Fixes from Cerberus and other development

This commit is contained in:
DarkFeather
2017-03-01 08:31:47 -06:00
parent 870b8c6715
commit 60de762c8b
6 changed files with 190 additions and 13 deletions

View File

@@ -227,7 +227,7 @@ function getmagnetlink {
searchstring="$(echo "$1" | sed "s/ /$searchunifier/g")"
searchlink="$(printf "$torrentengine" "$searchstring")"
searchresult="$(wget --timeout=5 -q -O - "$searchlink" | bash -c "$torrentterms")"
magnetlink="$(wget --timeout=5 -q -O - "$searchresult" | grep 'magnet:?' | cut -f $magnetposition -d \")"
magnetlink="$(wget --timeout=5 -q -O - "$searchresult" | grep 'magnet:?' | cut -f "$magnetposition" -d \"| head -n 1)"
if [ $torrentdebugging == "true" ]; then
echo '<'$searchstring'>'
echo '<'$searchlink'>'