dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit da064a4076bb675ca14f1c7e9ac5d74d8a4d6c99
parent f27a7ba8a9917350b9e8e030dbe9b0ddc7853efc
Author: hhvn <dev@haydenvh.com>
Date:   Tue,  2 Mar 2021 13:03:08 +0000

.scripts/bin/ytsrch2: change order of output blocks to make sorting easier

Diffstat:
M.scripts/bin/ytsrch2 | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.scripts/bin/ytsrch2 b/.scripts/bin/ytsrch2 @@ -26,7 +26,7 @@ do query="$query $2" shift done 2>/dev/null -content=$(curl -H "Accept-Language: en-US" -qsL "https://www.youtube.com/results?search_query=$(echo "$query" | xxd -p | tr -d '\n' | sed 's/../%&/g')") +content=$(curl -H "Accept-Language: en-US" -qsL "https://www.youtube.com/results?search_query=$(echo "$query" | xxd -p | tr -d '\n' | sed 's/../%&/g')&hl=en") # this is just fucking braindead obfuscation, fuck youtube @@ -44,9 +44,9 @@ getelem(){ for i in $(seq ${2:-20}) do - printf "\nURI: %s\nTitle: %s\nAuthor: %s\nPublished: %s\nLength: %s\nViews: %s\n" \ - "$(getelem $i "$uris" )" \ + printf "\nTitle: %s\nURI: %s\nAuthor: %s\nPublished: %s\nLength: %s\nViews: %s\n" \ "$(getelem $i "$titles" )" \ + "$(getelem $i "$uris" )" \ "$(getelem $i "$authors")" \ "$(getelem $i "$dates" )" \ "$(getelem $i "$length" )" \