Skip to content

Commit

Permalink
adding in anti-tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel1998 committed Oct 25, 2024
1 parent 64b004e commit 7e0a5a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# reference, old shit
1_reference/
hosts

# macOS Junks
.DS_Store
Expand Down
6 changes: 2 additions & 4 deletions renderer_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ MODTIME=0


function show_album_art {

clear
cols=$(tput cols)
lines=$(tput lines)
if [ "$cols" -gt "$lines" ]; then
Expand All @@ -39,7 +37,7 @@ function show_album_art {
bvalue=78
fi
if [ -f $(which timg) ];then
timg -U -pq "${1}"
timg -pq "${1}"
else
if [ -f $(which jp2a) ];then
# if it looks bad, try removing invert
Expand All @@ -53,7 +51,7 @@ function show_album_art {
main () {
if [ "$MODTIME" != $(date -r "${CacheFile}" +%s) ];then
MODTIME=$(date -r "${CacheFile}" +%s)
cat "${CacheFile}" | grep -e "^http" | while IFS= read -r line; do
cat "${CacheFile}" | grep -e "^http" | grep -v -e "\/track" -e "sendgrid\." -e "cloudfront\." -e "icon" -e "ICON" | while IFS= read -r line; do
echo "${line}"
show_album_art "${line}"
done
Expand Down

0 comments on commit 7e0a5a4

Please sign in to comment.