summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/curlqb
blob: c3f6871b85fd61d2280deecd296d4f5a09d5e01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

curl -s 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins' | awk -F'"' '
/require an account/ {exit}
/\.py/ {
	url=$2
	getline
	getline
	getline
	if($0 !~ /❗|✖/)
		print url
}
' | xargs curl -s -Z -L --remote-name-all --create-dirs --output-dir "$1" --
an> # one extra ',' at the end will not let `for tz in ...` loop one extra time? t) for i in $(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))