From e8113ab259095154ce0cb66f4225dab778c69c08 Mon Sep 17 00:00:00 2001 From: AshtonHarding Date: Thu, 24 Jan 2019 23:52:45 -0600 Subject: [PATCH] Fixes the advertisement issue --- kyq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyq b/kyq index 1eb8836..daf9dd3 100755 --- a/kyq +++ b/kyq @@ -26,7 +26,7 @@ while test $# -gt 0; do title=$(xmllint --html --xpath '//h3/a[@href]/span' tmp.html) url=$(xmllint --html --xpath '//h3/a/@href' tmp.html) echo $title | sed 's/<\/span>/\n/g' | sed 's/^.*>//' >> A_TITLE.txt - echo $url | sed 's/href="/\n/g' | sed 's/&.*//' | sed 's/"//' | sed 's/^/https:\/\/www.youtube.com/' | tail -n +2 | sed '/user/d' >> A_URL.txt + echo $url | sed 's/href="/\n/g' | sed 's/&.*//' | sed 's/"//' | sed "/googleadservices/d" | sed 's/^/https:\/\/www.youtube.com/' | tail -n +2 | sed '/user/d' >> A_URL.txt # Removes duplicate URL $(awk '!x[$1]++' A_URL.txt >> A_URL_SORTED.txt) ## Loop through both files and post them side by side.