41 lines
2.0 KiB
Bash
Executable File
41 lines
2.0 KiB
Bash
Executable File
declare -A sources
|
|
sources[ddg]="https://duckduckgo.com/?q="
|
|
sources[gelb]="https://gelbooru.com/index.php?page=post&s=list&tags="
|
|
sources[wiki]="https://en.wikipedia.org/w/index.php?title=Special:Search&fulltext=Search&ns0=1&go=Go&search="
|
|
sources[gfl]="https://iopwiki.com/index.php?title=Special:Search&go=Go&search="
|
|
sources[nyaa]="https://nyaa.si/?f=0&c=1_2&q="
|
|
sources[itch]="https://itch.io/search?q="
|
|
sources[bandcamp]="https://bandcamp.com/search?q="
|
|
sources[pip]="https://pypi.org/search/?q="
|
|
sources[fdroid]="https://search.f-droid.org/?lang=en&q="
|
|
sources[wiby]="http://wiby.me/?q="
|
|
sources[arch]="https://wiki.archlinux.org/index.php?go=Go&search="
|
|
sources[mal]="https://myanimelist.net/anime.php?cat=anime&type=0&score=0&status=0&p=0&r=0&sm=0&sd=0&sy=0&em=0&ed=0&ey=0&c%5B%5D=a&c%5B%5D=b&c%5B%5D=c&c%5B%5D=f&q="
|
|
sources[meta]="https://metager.org/meta/meta.ger3?eingabe="
|
|
sources[jaded]="http://thejadednetwork.com/sfx/search/?submitSearch=Search+SFX&x=&keyword="
|
|
sources[vndb]="https://vndb.org/v?sq="
|
|
#https://apibay.org/q.php?cat=&q=
|
|
#https://apibay.org/t.php?id=
|
|
mag() { echo "magnet:?xt=urn:btih:$1&dn=${*:2}&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.bittor.pw%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=udp%3A%2F%2Fbt.xxx-tracker.com%3A2710%2Fannounce&tr=udp%3A%2F%2Fpublic.popcorn-tracker.org%3A6969%2Fannounce&tr=udp%3A%2F%2Feddie4.nl%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce"; }
|
|
function smolhelp()
|
|
{
|
|
echo "Known search engines: ${!sources[@]}"
|
|
}
|
|
|
|
function bighelp()
|
|
{
|
|
echo "Configured search engines:"
|
|
for key in ${!sources[@]}; do
|
|
echo "$key: ${sources[$key]}"
|
|
done
|
|
}
|
|
|
|
while getopts "hH" o;do case "${o}" in
|
|
h) smolhelp; exit;;
|
|
H) bighelp; exit;;
|
|
esac done
|
|
|
|
SOURCE=$1
|
|
shift 1
|
|
exo-open "${sources[$SOURCE]}$*"
|