/home/pi/.zen/astroport/zen/_CopyLaRadio is now /var/www/loveland/_CopyLaRadio

This commit is contained in:
qo-op 2020-06-04 14:31:36 +02:00
parent 19b8c3914e
commit e6bb3d1f87
1 changed files with 6 additions and 6 deletions

View File

@ -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.='<p><a href="'.$lnk.'" target="check">LIEN: '.$lnk.'</a></p>';
@ -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.='<a style="color:#FFFFFF" href="https://www.youtube.com/results?search_query='.urlencode($artist).'%20'.urlencode($title).'" target="check">
<h4>'.$artist.' / '.$title.'</h4>
@ -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?"');
}
}