mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
update
This commit is contained in:
8
rss
8
rss
@@ -3,17 +3,15 @@
|
|||||||
#script for downloading latest anime episode via torrent using rss provided by website named "subsplease.org"
|
#script for downloading latest anime episode via torrent using rss provided by website named "subsplease.org"
|
||||||
|
|
||||||
#parsing rss file
|
#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
|
curl -s https://subsplease.org/rss/?r=720 | tr "><" ">\n<" > $HOME/.cache/rss
|
||||||
|
|
||||||
#extracting names and providing the menu for selecting particular title
|
#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
|
if [ -z "$name" ]; then
|
||||||
notify-send -u critical "Err.. Query empty"
|
notify-send -u critical "Err.. Query empty"
|
||||||
else
|
else
|
||||||
printf "$name\n\n"
|
|
||||||
|
|
||||||
#changing the name into format string for pattern matching
|
#changing the name into format string for pattern matching
|
||||||
query=$(printf "$name" | jq -rRs @uri)
|
query=$(printf "$name" | jq -rRs @uri)
|
||||||
|
|
||||||
@@ -21,5 +19,5 @@ else
|
|||||||
magnet=$(sed -n -e "s/link>\(.*$query.*\).*/\1/p" .cache/rss)
|
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
|
#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
|
fi
|
||||||
|
|||||||
4
tor-cli
4
tor-cli
@@ -52,7 +52,7 @@ awk '{print "[S:"$1 ", L:"$2"]" }' $cachedir/seedleech.bw > $cachedir/tmp && mv
|
|||||||
|
|
||||||
# Getting the line number
|
# Getting the line number
|
||||||
LINE=$(paste -d\ $cachedir/size.bw $cachedir/seedleech.bw $cachedir/titles.bw |
|
LINE=$(paste -d\ $cachedir/size.bw $cachedir/seedleech.bw $cachedir/titles.bw |
|
||||||
dmenu -i -l 25 |
|
dmenu -l 25 |
|
||||||
cut -d\- -f1 |
|
cut -d\- -f1 |
|
||||||
awk '{$1=$1; print}')
|
awk '{$1=$1; print}')
|
||||||
|
|
||||||
@@ -65,5 +65,5 @@ magnet=$(grep -Po "magnet.*\" " $cachedir/tmp.html | tr -d \")
|
|||||||
|
|
||||||
echo $magnet > .cache/maglink
|
echo $magnet > .cache/maglink
|
||||||
|
|
||||||
$HOME/repos_scripts/torrent "$magnet"
|
st -e $HOME/repos_scripts/torrent "$magnet" &
|
||||||
|
|
||||||
|
|||||||
7
torrent
7
torrent
@@ -6,12 +6,7 @@ else
|
|||||||
magnet=$*
|
magnet=$*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Enter Directory (default:MOVIES) :"
|
x=$(printf "MOVIES\\nSoftwares" | dmenu -p "Select Directory :" | tr -d '\n')
|
||||||
read x
|
|
||||||
|
|
||||||
if [ -z "$x" ]; then
|
|
||||||
x="MOVIES"
|
|
||||||
fi
|
|
||||||
|
|
||||||
notify-send "Torrent:Rukk ja cheecha Download ho rha hai"
|
notify-send "Torrent:Rukk ja cheecha Download ho rha hai"
|
||||||
echo "$magnet"
|
echo "$magnet"
|
||||||
|
|||||||
Reference in New Issue
Block a user