Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions tests/testqueries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# currency
# trans
# sport_fixture
# holidays
# kno_right

did_you_mean Linux Tarvalds
Expand Down Expand Up @@ -102,3 +103,8 @@ richcast cast of event horizon
richcast cast of equalibrium
richcast/kno_top GoT stars
richcast/kno_top avengers actors

holidays Mexican holidays
holidays what holidays does mexico celebrate?
holidays holiday in Swiss
holidays celebrated holidays in india
5 changes: 5 additions & 0 deletions tuxi
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ quotes # Quotes ( eg: mahatma gandhi quotes )
trans # Translate ( eg: Vais para cascais? em ingles )
sport_fixture # Shows last or next fixture of a sports team ( eg. Chelsea next game )
lyrics_us # Lyrics for US users, above does not work for US
holidays # Public holidays (eg: holiday in Swiss)
kno_right # Knowledge Graph - right ( eg: the office )
"

Expand Down Expand Up @@ -742,6 +743,10 @@ a_tracklist() {
fi
}

a_holidays() {
echo "$google_html" | pup 'div.ifw9Ub text{}' | sed '/^\s*$/d' | recode html..ISO-8859-1
}

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