From 32cb91f07d942cccd37db27014f21f27e7b6e2d8 Mon Sep 17 00:00:00 2001 From: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net> Date: Thu, 18 Mar 2021 23:04:04 +0100 Subject: [PATCH] move website --- src/download.php | 0 website/download.php | 27 +++++++++++++++++++++++++++ index.php => website/index.php | 7 +++---- {src => website}/run.php | 0 4 files changed, 30 insertions(+), 4 deletions(-) delete mode 100644 src/download.php create mode 100644 website/download.php rename index.php => website/index.php (84%) rename {src => website}/run.php (100%) diff --git a/src/download.php b/src/download.php deleted file mode 100644 index e69de29..0000000 diff --git a/website/download.php b/website/download.php new file mode 100644 index 0000000..6ce7124 --- /dev/null +++ b/website/download.php @@ -0,0 +1,27 @@ + +"; + + if (!command_exist('youtube-dl')) { + print '[Erreur] pas de commande youtube-dl installée sur ce serveur'; + } else { + shell_exec('youtube-dl -i -f best --output "../input/ydl/%(title)s.%(ext)s" '.$url); + } + + }else{ + echo "pas d'url envoyée. Vérifiez le formulaire. Retour"; + } + + + include( 'website/run.php' ); diff --git a/index.php b/website/index.php similarity index 84% rename from index.php rename to website/index.php index 3fbd6f5..b149ea9 100644 --- a/index.php +++ b/website/index.php @@ -1,6 +1,5 @@ @@ -14,8 +13,8 @@

Transcription

Donnez l'url de la vidéo à transcrire. -
- + +
diff --git a/src/run.php b/website/run.php similarity index 100% rename from src/run.php rename to website/run.php