From e6bb3d1f872b0dabaacdb71a0a7aae35e3e032a5 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 4 Jun 2020 14:31:36 +0200 Subject: [PATCH] /home/pi/.zen/astroport/zen/_CopyLaRadio is now /var/www/loveland/_CopyLaRadio --- www/LOVELand/jukebox/REC/youtube-dl.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/www/LOVELand/jukebox/REC/youtube-dl.php b/www/LOVELand/jukebox/REC/youtube-dl.php index ab5fea0..715be29 100644 --- a/www/LOVELand/jukebox/REC/youtube-dl.php +++ b/www/LOVELand/jukebox/REC/youtube-dl.php @@ -38,7 +38,7 @@ if( $search == "REC" ) { if( ! exec('grep '.escapeshellarg($lnk).' /tmp/ytdl.list') ) { // file_put_contents("/tmp/ytdl.list","CopyLibre||$lnk\n", FILE_APPEND); // instead of using a relay daemon to monitor a /tmp shared file, we are going to send sbot message to make it. #zenyta SSB message. - shell_exec('/home/pi/.zen/astroport/zen/_CopyLaRadio/sbotc_zenyta.sh'. $lnk); + shell_exec('/var/www/loveland/_CopyLaRadio/sbotc_zenyta.sh'. $lnk); } $result.='

LIEN: '.$lnk.'

'; @@ -49,10 +49,10 @@ if( $search == "REC" ) { if( ! exec('grep '.escapeshellarg($cmd).' /tmp/ytdl.list') ) { // shell_exec('/home/pi/G1sms+/_CopyLaRadio/parle.sh "Enregistrement ajouté."'); - shell_exec('/home/pi/.zen/astroport/zen/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh "'. $artist . '" "' . $title .'"'); + shell_exec('/var/www/loveland/_CopyLaRadio/artist_song_to_sbotc_zenyta.sh "'. $artist . '" "' . $title .'"'); } else { - shell_exec('/home/pi/.zen/astroport/zen/_CopyLaRadio/parle.sh "Copie déjà lancée"'); + shell_exec('/var/www/loveland/_CopyLaRadio/parle.sh "Copie déjà lancée"'); } $result.='

'.$artist.' / '.$title.'

@@ -60,16 +60,16 @@ if( $search == "REC" ) { // RADIO EXTERNAL TRACK SCRAPERs .... } else if($radio != "" && $artist == "undefined" && $title == "undefined" ){ - shell_exec('/home/pi/.zen/astroport/zen/_CopyLaRadio/parle.sh "Recherche externe pour '.$radio.'"'); + shell_exec('/var/www/loveland/_CopyLaRadio/parle.sh "Recherche externe pour '.$radio.'"'); file_put_contents("/tmp/youtube-dl.log", "/home/pi/G1sms+/_CopyLaRadio/libradio/".escapeshellcmd($radio).".php".PHP_EOL, FILE_APPEND); if ( file_exists("/home/pi/G1sms+/_CopyLaRadio/libradio/".escapeshellcmd($radio).".php") ) { file_put_contents("/tmp/ytdl.list","$radio||".PHP_EOL, FILE_APPEND); } else { - shell_exec('/home/pi/.zen/astroport/zen/_CopyLaRadio/parle.sh "Aucun module"'); + shell_exec('/var/www/loveland/_CopyLaRadio/parle.sh "Aucun module"'); } } else { - shell_exec('/home/pi/.zen/astroport/zen/_CopyLaRadio/parle.sh "Identification imprécise. Podcast? Fichier local?"'); + shell_exec('/var/www/loveland/_CopyLaRadio/parle.sh "Identification imprécise. Podcast? Fichier local?"'); } }