Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tuxi
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ esac
# you can disable tests by commenting out the line(s)
priority="
tracklist # Album track lists ( eg: noisia outer edges tracklist )
discography # Band Discography ( eg: meshuggah albums )
richcast # Rich Rich Answers ( eg: social network cast )
define # Define ( eg: define Aggrandize )
lists # Simple lists ( eg Need for Speed Heat cars list )
Expand Down Expand Up @@ -741,6 +742,13 @@ a_tracklist() {
fi
fi
}
# Band Discography ( eg: meshuggah discography ) // credit @lesutachi
a_discography() {
# Unsorted
# echo "$google_html" | pup 'a.MiPcId json{}' | jq -r '.[].children[].title' | recode html..ISO-8859-1
# Sorted by year
echo "$google_html" | pup 'a.MiPcId json{}' | jq -r '.[].children[].title' | sed 's@\(.*\)\(([0-9]\{4\}\)\(.*\)@\2:;:\1\2\3@' | sort | sed 's@\(.*\):;:@@' | recode html..ISO-8859-1
}

###############################
##### Functions #####
Expand Down