Browse Source

modify scripts to make it run on prod

master
Kayn Ty 1 year ago
parent
commit
b618dfe7c3
  1. 4
      info.php
  2. 4
      website/download.php
  3. 3
      website/youtube-dl.sh

4
info.php

@ -0,0 +1,4 @@
<?php
echo exec('website/test.sh');

4
website/download.php

@ -33,10 +33,10 @@ include( '_head.php' );
$uniqid = time();
# exemple url https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d
// # exemple url https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d
// exec( './youtube-dl.sh uniqueid_facho https://peertube.cipherbliss.com/videos/watch/b88a9568-517c-4a49-ab07-75c79323a825', $output, $result );
exec( './youtube-dl.sh uniqueid_facho https://peertube.cipherbliss.com/videos/watch/b88a9568-517c-4a49-ab07-75c79323a825', $output, $result );
// exec( '.'.$old . '/test.sh ' . $uniqid . ' ' . $url, $output, $result );
echo "<br/> résultat du script. <br>";

3
website/youtube-dl.sh

@ -1,10 +1,11 @@
#!/bin/bash
UNIQID=$1
mkdir -p ../input/ydl
rm -rf ../input/ydl/$UNIQID.mp3
rm -rf ../input/ydl/$UNIQID
UNIQID=$1
URL=$2
OUTPUT="../input/ydl/$UNIQID.mp3"

Loading…
Cancel
Save