summaryrefslogtreecommitdiff
path: root/.local/bin/curlqb
blob: 67dc2f827b8654c738098573dd6791862564a422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# how to not rewrite, maybe not?
# how to know if there's new? use rewrite?
# how to check if some script outdated? delete it?
# how qbittorrent auto update those scripts, maybe try the fork?
# how to make it a pure awk script? should I?
# can I replace awk $0 ~ /.../ with /.../ ?

curl -s 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins' | awk -F'"' '/Plugins for Private sites/{exit} /\.py/{url=$2;getline;getline;getline;if($0 !~ /❗|✖/)print url}' | xargs curl -s -Z -L --remote-name-all --create-dirs --output-dir "$1" --

#curl -s 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins' | awk -F'"' '{
#	if($0 ~ /Plugins for Private sites/)
#		exit
#	if($0 ~ /\.py/)
#	{
#		url=$2
#		getline
#		getline
#		getline
#		if($0 !~ /❗|✖/)
#			print url
#	}
#}' | xargs curl -s -Z -L --remote-name-all --create-dirs --output-dir "$1" --