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