Add uqload_downloader

This commit is contained in:
qo-op 2021-05-23 00:05:20 +02:00
parent 85278562a4
commit 8446c9cca7
1 changed files with 19 additions and 1 deletions

View File

@ -71,7 +71,7 @@ case $? in
esac
fi
# CHOOSE CATEGORY (remove anime, not working!)
CHOICE=$(zenity --entry --width 300 --title="Catégorie" --text="Choisissez la catégorie de votre vidéo" --entry-text="Film" Anime Serie Youtube MP3)
CHOICE=$(zenity --entry --width 300 --title="Catégorie" --text="Choisissez la catégorie de votre vidéo" --entry-text="Film" Anime Serie KODI Youtube MP3)
[[ $CHOICE == "" ]] && exit 1
# LOWER CARACTERS
@ -340,7 +340,25 @@ echo "${CAT};${TMDB};${YEAR};${TITLE};${SAISON};${GENRES};${GROUPES};${RES};/ipf
# _IPFSREPFILEID_ is replaced later
;;
kodi)
if [[ ! -f $HOME/.local/bin/uqload_downloader ]]; then
cd /tmp
git clone https://github.com/papiche/uqload_downloader.git
cd uqload_downloader/cli
./download_from_kodi_log.sh
[[ -f $HOME/.local/bin/uqload_downloader ]] && zenity --warning --width ${large} --text "INSTALLATION download_from_kodi_log.sh OK"
cp download_from_kodi_log.sh $HOME/.local/bin/
else
## CREATE NEW SHORTCUT
zenity --warning --width ${large} --text "UTILISEZ $HOME/.local/bin/download_from_kodi_log.sh en ligne de commande !!"
exit 0
fi
;;
########################################################################
# CASE ## DEFAULT
########################################################################