mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
fixed tor-cli, updated youtube script
This commit is contained in:
2
tor-cli
2
tor-cli
@@ -4,7 +4,7 @@ mkdir -p $HOME/.cache/pirokit
|
|||||||
|
|
||||||
query=$(printf "" | dmenu -p "Search Torrent: ")
|
query=$(printf "" | dmenu -p "Search Torrent: ")
|
||||||
|
|
||||||
baseurl="https://1337x.to"
|
baseurl="https://1337xx.to"
|
||||||
cachedir="$HOME/.cache/pirokit"
|
cachedir="$HOME/.cache/pirokit"
|
||||||
query="$(sed 's/ /+/g' <<<$query)"
|
query="$(sed 's/ /+/g' <<<$query)"
|
||||||
|
|
||||||
|
|||||||
4
youtube
4
youtube
@@ -31,7 +31,7 @@ part_audio()
|
|||||||
#function to download full video
|
#function to download full video
|
||||||
full_video()
|
full_video()
|
||||||
{
|
{
|
||||||
yt-dlp -f best -o "$HOME/Videos/%(title)s.%(ext)s" "$1"
|
yt-dlp -o "$HOME/Videos/%(title)s.%(ext)s" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# function to download part of a video and also split it for SNS...
|
# function to download part of a video and also split it for SNS...
|
||||||
@@ -42,7 +42,7 @@ part_video()
|
|||||||
read start
|
read start
|
||||||
printf "${c_yellow}Enter End Point(hh:mm:ss)or(mm:ss):${c_cyan}"
|
printf "${c_yellow}Enter End Point(hh:mm:ss)or(mm:ss):${c_cyan}"
|
||||||
read end
|
read end
|
||||||
ffmpeg -i $(yt-dlp -f best --get-url "$video") -ss $start -to $end "$HOME/Videos/%(title)s.mp4"
|
ffmpeg -i $(yt-dlp -f b --get-url "$video") -ss $start -to $end "$HOME/Videos/%(title)s.mp4"
|
||||||
}
|
}
|
||||||
|
|
||||||
#program starts from here..
|
#program starts from here..
|
||||||
|
|||||||
Reference in New Issue
Block a user