Browse Source

Wget timeouts

main
DarkFeather 5 years ago
parent
commit
870b8c6715
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Bash/header

+ 2
- 2
Bash/header View File

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


Loading…
Cancel
Save