From 48cc899a162ee2749b8c6b2e68914b6274176889 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 7 Jul 2023 22:45:59 -0700 Subject: qbt-nox need to add search plugins one by one for each file instead of specify a dir, I change upd a little bit to automate it --- home/xyz/.local/bin/upd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'home/xyz/.local/bin/upd') diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 48ae6629..d7607723 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -44,8 +44,10 @@ checkrebuild: $(checkrebuild | awk '$2!~"zoom|miniconda3"{printf("%s ",$2)}') } qb () { - rm -r -- "$HOME/programs/qbittorrent_search_plugins/" - curlqb "$HOME/programs/qbittorrent_search_plugins/" + sudo systemctl stop qbittorrent-nox@xyz.service + find "$XDG_DATA_HOME/qBittorrent/nova3/engines" -maxdepth 1 -type f -name 'jackett*' -prune -o -type f -name '__init__.py' -prune -o -type f -print -delete + curlqb "$XDG_DATA_HOME/qBittorrent/nova3/engines" + sudo systemctl start qbittorrent-nox@xyz.service } refl () { -- cgit v1.2.3-70-g09d2