2022-02-11 06:58:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# . CONFIG.sh
|
|
|
|
|
|
|
|
# set -o xtrace ## To debug scripts
|
|
|
|
# set -o errexit ## To exit on error
|
|
|
|
# set -o errunset ## To exit if a variable is referenced but not set
|
|
|
|
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
cd "$(dirname "")"
|
|
|
|
echo "Working Dir: " $(pwd)
|
|
|
|
LINK=`xclip -selection clipboard -o`
|
2022-12-03 02:00:26 +00:00
|
|
|
|
|
|
|
python "${HOME}/.config/solarfm/plugins/youtube_download/yt_dlp/__main__.py" \
|
|
|
|
--cookies-from-browser firefox --write-sub --embed-sub --sub-langs en \
|
|
|
|
-o "${1}/%(title)s.%(ext)s" "${LINK}"
|
2022-02-11 06:58:49 +00:00
|
|
|
}
|
|
|
|
main "$@";
|