From 81ddb5df3533c476792076672eeedfc02511ed99 Mon Sep 17 00:00:00 2001 From: qo-op Date: Wed, 7 Apr 2021 23:47:00 +0200 Subject: [PATCH] MANIFESTE COPIE PRIVE --- ajouter_video.sh | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index 5a0ae17..da04fb3 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -45,6 +45,31 @@ IPFSNODEID=$(ipfs id -f='\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)