summaryrefslogtreecommitdiff
path: root/bin/menuscripts/tsh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/menuscripts/tsh')
-rwxr-xr-xbin/menuscripts/tsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/menuscripts/tsh b/bin/menuscripts/tsh
index 0c57ee0..72670f2 100755
--- a/bin/menuscripts/tsh
+++ b/bin/menuscripts/tsh
@@ -170,8 +170,11 @@ then
# Get results
rm -f "$results" "$links"
+
# shellcheck source=/usr/local/lib/$PROG/nyaa.sh disable=SC1091
. "$MODULES_PATH/$module"
+ get_torrents
+
[ -f "$results" ] || die "No results."
# Save which module was used
@@ -180,9 +183,6 @@ else
module="$(tail -n 1 "$links")"
fi
-# acquire get_magnet function
-# shellcheck source=/usr/local/lib/$PROG/nyaa.sh disable=SC1091
-getfunctions=1 . "$MODULES_PATH/$module"
# select result from "$results"
for choice in $(select_result | xargs)