diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-09 01:45:13 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-09 01:45:13 -0700 |
commit | dd013b8be55d2d35ef647878773044ecfd9e56f3 (patch) | |
tree | 949e89fa5f948b71a12c25a89ef1bc97914f0a10 /.local/bin/curlqb | |
parent | 53bccd9c504204e622340455f26839721ea1f2c0 (diff) |
curl qbittorrent unofficial search plugins
Diffstat (limited to '.local/bin/curlqb')
-rwxr-xr-x | .local/bin/curlqb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.local/bin/curlqb b/.local/bin/curlqb new file mode 100755 index 00000000..67dc2f82 --- /dev/null +++ b/.local/bin/curlqb @@ -0,0 +1,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" -- + |