mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
Added rss script
This commit is contained in:
2
ani-cli
2
ani-cli
@@ -5,7 +5,7 @@
|
|||||||
player_fn="mpv"
|
player_fn="mpv"
|
||||||
|
|
||||||
prog="ani-cli"
|
prog="ani-cli"
|
||||||
site="gogoanime.cm"
|
site="gogoanime.wiki"
|
||||||
logfile="${XDG_CACHE_HOME:-$HOME/.cache}/ani-hsts"
|
logfile="${XDG_CACHE_HOME:-$HOME/.cache}/ani-hsts"
|
||||||
|
|
||||||
c_red="\033[1;31m"
|
c_red="\033[1;31m"
|
||||||
|
|||||||
21
rss
Executable file
21
rss
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#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"
|
||||||
|
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:")
|
||||||
|
|
||||||
|
printf "$name\n\n"
|
||||||
|
|
||||||
|
#changing the name into format string for pattern matching
|
||||||
|
query=$(printf "$name" | jq -rRs @uri)
|
||||||
|
|
||||||
|
#finding the magnet link containing the exact pattern
|
||||||
|
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"
|
||||||
4
torrent
4
torrent
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -z "$*" ]; then
|
if [ -z "$*" ]; then
|
||||||
magnet="$(cat .cache/maglink)"
|
magnet="$(xclip -out clipboard)"
|
||||||
else
|
else
|
||||||
magnet=$*
|
magnet=$*
|
||||||
fi
|
fi
|
||||||
@@ -13,6 +13,6 @@ if [ -z "$x" ]; then
|
|||||||
x="MOVIES"
|
x="MOVIES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notify-send "Torrent:Rukk ja Download ho rha hai"
|
notify-send "Torrent:Rukk ja cheecha Download ho rha hai"
|
||||||
echo "$magnet"
|
echo "$magnet"
|
||||||
aria2c -d $x --seed-time=0 "$magnet" && notify-send "Torrent:cheecha download hogyi" || notify-send -u critical "Torrent:cheecha error!!"
|
aria2c -d $x --seed-time=0 "$magnet" && notify-send "Torrent:cheecha download hogyi" || notify-send -u critical "Torrent:cheecha error!!"
|
||||||
|
|||||||
Reference in New Issue
Block a user