Wget timeouts
This commit is contained in:
parent
0c359bd4ec
commit
870b8c6715
@ -226,8 +226,8 @@ function getmagnetlink {
|
|||||||
fi
|
fi
|
||||||
searchstring="$(echo "$1" | sed "s/ /$searchunifier/g")"
|
searchstring="$(echo "$1" | sed "s/ /$searchunifier/g")"
|
||||||
searchlink="$(printf "$torrentengine" "$searchstring")"
|
searchlink="$(printf "$torrentengine" "$searchstring")"
|
||||||
searchresult="$(wget -q -O - "$searchlink" | bash -c "$torrentterms")"
|
searchresult="$(wget --timeout=5 -q -O - "$searchlink" | bash -c "$torrentterms")"
|
||||||
magnetlink="$(wget -q -O - "$searchresult" | grep 'magnet:?' | cut -f $magnetposition -d \")"
|
magnetlink="$(wget --timeout=5 -q -O - "$searchresult" | grep 'magnet:?' | cut -f $magnetposition -d \")"
|
||||||
if [ $torrentdebugging == "true" ]; then
|
if [ $torrentdebugging == "true" ]; then
|
||||||
echo '<'$searchstring'>'
|
echo '<'$searchstring'>'
|
||||||
echo '<'$searchlink'>'
|
echo '<'$searchlink'>'
|
||||||
|
Loading…
Reference in New Issue
Block a user