summaryrefslogtreecommitdiff
path: root/bin/extra/myalscore.sh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-22 16:23:07 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-22 16:23:07 +0200
commitd466dcc80e77463fa035fc85ced0c253e38cbac2 (patch)
treedf8e20418fc6529e9639b0f38a205adfded16072 /bin/extra/myalscore.sh
parent10e12bbe481af7974739060f51210f7948fc1df9 (diff)
parentfcc378109f2c9d3f80a6213646d7c170dd93100d (diff)
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'bin/extra/myalscore.sh')
-rwxr-xr-xbin/extra/myalscore.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/extra/myalscore.sh b/bin/extra/myalscore.sh
index ef68bcc..e2b4e25 100755
--- a/bin/extra/myalscore.sh
+++ b/bin/extra/myalscore.sh
@@ -4,4 +4,5 @@
query="$(printf '%s' "$*" | sed 's/\s/%20/g')"
curl -s "https://myanimelist.net/search/prefix.json?type=all&keyword=$query&v=1" \
-H 'Accept: application/json, text/javascript, */*; q=0.01' |
- jq -r '.categories[].items[] | [.payload.score, .name] | join(" ")'
+ jq -r '.categories[].items[] | "\(.payload.score)@\(.name)@\(.url)"' |
+ column -t -l 3 -s '@'