Skip to content

Commit

Permalink
made notify-send not use default icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LamprosPitsillos committed Jan 1, 2022
1 parent d5be6a2 commit 498212c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notflix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ grep -o '<a href="/torrent/.*</a>' $cachedir/tmp.html |

result_count=$(wc -l $cachedir/titles.bw | awk '{print $1}')
if [ "$result_count" -lt 1 ]; then
notify-send "😔 No Result found. Try again 🔴"
notify-send "😔 No Result found. Try again 🔴" -i "NONE"
exit 0
fi

Expand Down Expand Up @@ -58,10 +58,10 @@ LINE=$(paste -d\ $cachedir/size.bw $cachedir/seedleech.bw $cachedir/titles.bw
awk '{$1=$1; print}')

if [ -z "$LINE" ]; then
notify-send "😔 No Result selected. Exiting... 🔴"
notify-send "😔 No Result selected. Exiting... 🔴" -i "NONE"
exit 0
fi
notify-send "🔍 Searching Magnet seeds 🧲"
notify-send "🔍 Searching Magnet seeds 🧲" -i "NONE"
url=$(head -n $LINE $cachedir/links.bw | tail -n +$LINE)
fullURL="${baseurl}${url}/"

Expand All @@ -72,4 +72,4 @@ magnet=$(grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" $cachedir/tmp.html | head
webtorrent "$magnet" --mpv

# Simple notification
notify-send "🎥 Enjoy Watching ☺️ "
notify-send "🎥 Enjoy Watching ☺️ " -i "NONE"

0 comments on commit 498212c

Please sign in to comment.