diff --git a/tuxi b/tuxi index 0078bd5..d7fcbdd 100755 --- a/tuxi +++ b/tuxi @@ -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 ) @@ -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 #####