summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/upd
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-07-07 22:45:59 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-07-07 22:45:59 -0700
commit48cc899a162ee2749b8c6b2e68914b6274176889 (patch)
tree8a6e7a6dbdadda6f677f900de8a3102f9859e7e1 /home/xyz/.local/bin/upd
parentb4fd4130a5bb772fe883de5e96b9959c921598fe (diff)
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
Diffstat (limited to 'home/xyz/.local/bin/upd')
-rwxr-xr-xhome/xyz/.local/bin/upd6
1 files changed, 4 insertions, 2 deletions
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 () {