From 884ea8dff4ae39580e4237fc08622cba12e16f8b Mon Sep 17 00:00:00 2001 From: CoolnsX Date: Fri, 10 Dec 2021 23:07:56 +0530 Subject: [PATCH] update --- rss | 8 +++----- tor-cli | 4 ++-- torrent | 7 +------ 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/rss b/rss index de8559a..a0b37a1 100755 --- a/rss +++ b/rss @@ -3,17 +3,15 @@ #script for downloading latest anime episode via torrent using rss provided by website named "subsplease.org" #parsing rss file -printf "Parsing SubsPlease RSS... Please Wait...\n\n" +notify-send "Parsing SubsPlease RSS... Please Wait..." curl -s https://subsplease.org/rss/?r=720 | tr "><" ">\n<" > $HOME/.cache/rss #extracting names and providing the menu for selecting particular title -name=$(sed -n -e 's/title>\(\[SubsPlease\].*\)/\1/p' .cache/rss | sed -e 's/\[SubsPlease\] //g' -e 's/(.*//g' | dmenu -p "Search RSS:") +name=$(sed -n -e 's/title>\(\[SubsPlease\].*\)/\1/p' .cache/rss | sed -e 's/\[SubsPlease\] //g' -e 's/(.*//g' | dmenu -l 25 -p "Search anime:") if [ -z "$name" ]; then notify-send -u critical "Err.. Query empty" else - printf "$name\n\n" - #changing the name into format string for pattern matching query=$(printf "$name" | jq -rRs @uri) @@ -21,5 +19,5 @@ else magnet=$(sed -n -e "s/link>\(.*$query.*\).*/\1/p" .cache/rss) #custom script for downloading torrent using aria2c.. you can use your own bittorrent client here - $HOME/repos_scripts/torrent "$magnet" + st -e $HOME/repos_scripts/torrent "$magnet" & fi diff --git a/tor-cli b/tor-cli index 2def5f8..2da6757 100755 --- a/tor-cli +++ b/tor-cli @@ -52,7 +52,7 @@ awk '{print "[S:"$1 ", L:"$2"]" }' $cachedir/seedleech.bw > $cachedir/tmp && mv # Getting the line number LINE=$(paste -d\ $cachedir/size.bw $cachedir/seedleech.bw $cachedir/titles.bw | - dmenu -i -l 25 | + dmenu -l 25 | cut -d\- -f1 | awk '{$1=$1; print}') @@ -65,5 +65,5 @@ magnet=$(grep -Po "magnet.*\" " $cachedir/tmp.html | tr -d \") echo $magnet > .cache/maglink -$HOME/repos_scripts/torrent "$magnet" +st -e $HOME/repos_scripts/torrent "$magnet" & diff --git a/torrent b/torrent index e049d84..e8fd0e4 100755 --- a/torrent +++ b/torrent @@ -6,12 +6,7 @@ else magnet=$* fi -printf "Enter Directory (default:MOVIES) :" -read x - -if [ -z "$x" ]; then - x="MOVIES" -fi +x=$(printf "MOVIES\\nSoftwares" | dmenu -p "Select Directory :" | tr -d '\n') notify-send "Torrent:Rukk ja cheecha Download ho rha hai" echo "$magnet"