MANIFESTE COPIE PRIVE

This commit is contained in:
qo-op 2021-04-07 23:47:00 +02:00
parent 29b77c5971
commit 81ddb5df35
1 changed files with 25 additions and 20 deletions

View File

@ -45,6 +45,31 @@ IPFSNODEID=$(ipfs id -f='<id>\n')
zenity --warning --width 300 --text "Ajoutez une vidéo à ASTROPORT/KODI"
## MANIFESTE COPIE PRIVE
if [[ ! -f ~/.zen/legal ]]; then
zenity --width ${large} --height=${haut} --text-info \
--title="Code de la propriété intellectuelle" \
--html \
--url="https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006278917/2008-12-11/" \
--checkbox="J'ai lu et j'accepte les termes."
case $? in
0)
echo "AUTORISATION COPIE PRIVE ASTROPORT OK !"
echo "$G1PUB" > ~/.zen/legal
# next step
;;
1)
echo "Refus conditions"
rm -f ~/.zen/legal
exit 1
;;
-1)
echo "Erreur."
exit 1
;;
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 == "" ]] && exit 1
@ -111,26 +136,6 @@ GENRES=$(zenity --list --checklist --title="GENRE" --height=${haut} \
# FORMAT GENRES genre1|genre2|genre3
## MANIFESTE OASIS
zenity --width ${large} --height=${haut} --text-info \
--title="Code de la propriété intellectuelle" \
--html \
--url="https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006278917/2008-12-11/" \
--checkbox="J'ai lu et j'accepte les termes."
case $? in
0)
echo "Ajout ASTROPORT !"
# next step
;;
1)
echo "Refus conditions" && exit 1
;;
-1)
echo "Erreur." && exit 1
;;
esac
FILE_PATH="$HOME/astroport/youtube/$YID"
mkdir -p ${FILE_PATH} && mv -f ${YTEMP}/* ${FILE_PATH}/
# rename FILE_NAME to YNAME (URL clean)