From 375a28ed0fc9edee8492c999dd37f4af3b5cc1c7 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 30 Dec 2024 04:51:15 -0800 Subject: No download yggtracker.py yggtracker.py requires yggdrasil which I don't want to install --- sh/curlqb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/curlqb b/sh/curlqb index 5332616..f70a6a3 100755 --- a/sh/curlqb +++ b/sh/curlqb @@ -4,9 +4,10 @@ # if do this also need change .py.1 to .py else qbt will not accept # also if a.py and a_1.py, qbt will not accept the latter, maybe need to change some .py codes inside # now, I choose to let three files to be overwrited, those are "with categories" .py files that overwrite without categories .py files, which is what I want so I don't use --no-clobber +# yggtracker.py requires yggdrasil which I don't want to install curl -sS 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins' | awk -F'"' ' /user-content-plugins-for-private-sites/ {exit} -/\.py/ { +(/\.py/ && !/yggtracker/) { url=$2 getline getline @@ -19,7 +20,7 @@ curl -sS 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-p # an alternative awk command: #awk -F'"' ' #/require an account/ {exit} -#/\.py/ { +#(/\.py/ && !/yggtracker/) { # url=$2 # line=NR #} -- cgit v1.2.3-70-g09d2