Updates for yggdrasil

This commit is contained in:
2025-04-15 13:58:49 -05:00
parent a82bd54091
commit 7962727fb3
10 changed files with 77 additions and 99 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
export YGGDRASIL="/srv/yggdrasil"
export YGGDRASIL="/home/yggdrasil"
option="$1"
path="$2"
newname="$3"
@@ -11,7 +11,7 @@ if [ "$option" == "" ] || [ "$option" == "-h" ] || [ "$option" == "--help" ] ||
echo 'Syntax: yggdrasil-get {dl|yt|mp3|sol|cp|mv} PATH [new file name in $PWD]'
echo "Option:"
echo "-- dl: Use wget"
echo "-- yt: Use youtube-dl"
echo "-- yt: Use yt-dlp"
echo "-- mp3: Use youtube-mp3"
echo "-- sol: Use solarmovie-vodlocker-dl"
echo "-- cp: Copy the file here."
@@ -47,9 +47,9 @@ if [ "$option" == "yt" ]; then
path="$(echo "$path" | cut -f 1 -d '&')"
fi
if [ "$newname" != "" ]; then
youtube-dl -o "$newname" "$path";
yt-dlp -o "$newname" "$path";
else
youtube-dl "$path";
yt-dlp "$path";
fi
fi
if [ "$option" == "mp3" ]; then