Skip to content

Commit

Permalink
Amélioration log création Player
Browse files Browse the repository at this point in the history
  • Loading branch information
JEALG committed Nov 10, 2024
1 parent 8d35de4 commit c192519
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/class/Free_CreateTV.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function createTV($create = 'default')
}
private static function createTV_player($logicalinfo, $templatecore_V4)
{
log::add('Freebox_OS', 'debug', '┌── :fg-success:Début de création des commandes pour ::/fg: ' . $logicalinfo['playerName'] . ' ──');
log::add('Freebox_OS', 'debug', '┌── :fg-success:' . '{{Début de création des commandes pour}}' . ' ::/fg: ' . $logicalinfo['playerName'] . ' ──');
$Free_API = new Free_API();
$TemplatePlayer = 'Freebox_OS::Player';

Expand All @@ -51,10 +51,10 @@ private static function createTV_player($logicalinfo, $templatecore_V4)
} else {
$_devicename = $Equipement['device_name'];
}
log::add('Freebox_OS', 'debug', '| ───▶︎ CONFIGURATION PLAYER : ' . $nb_player . ' - ' . $_devicename);
log::add('Freebox_OS', 'debug', '| ───▶︎ ' . '{{CONFIGURATION PLAYER}}' . ' : ' . $nb_player . ' - ' . $_devicename);
if (isset($Equipement['id'])) {
$player_STATE = 'KO';
$player_log = ' -- Il n\'est pas possible de récupérer le status du Player donc pas de création de la commande d\'état';
$player_log = ' -- ' . '{{Il n\'est pas possible de récupérer le status du Player donc pas de création de la commande d\'état}}';
$player_ID = $Equipement['mac'];
$player_MAC = 'MAC';
if ($Equipement['id']) {
Expand All @@ -64,7 +64,7 @@ private static function createTV_player($logicalinfo, $templatecore_V4)
log::add('Freebox_OS', 'debug', '| ───▶︎ ETAT PLAYER : ' . $results_playerID['power_state']);
if ($results_playerID['power_state'] == 'running' || $results_playerID['power_state'] == 'standby') {
$player_STATE = 'OK';
$player_log = ' -- Il est possible de récupérer le status du Player';
$player_log = ' -- ' . '{{Il est possible de récupérer le status du Player}}';
}
$player_ID = $Equipement['id'];
$player_MAC = 'ID';
Expand All @@ -88,13 +88,13 @@ private static function createTV_player($logicalinfo, $templatecore_V4)
}
}
} else {
log::add('Freebox_OS', 'debug', '|:fg-warning: ───▶︎ AUCUNE INFO supplémentaire disponible pour le player:/fg:');
log::add('Freebox_OS', 'debug', '|:fg-warning: ───▶︎ ' . '{{AUCUNE INFO supplémentaire disponible pour le player ou absence d\'ID}}' . ':/fg:');
}
log::add('Freebox_OS', 'debug', '| ───▶︎ FIN CONFIGURATION PLAYER : ' . $nb_player . ' / ' . $_devicename);
log::add('Freebox_OS', 'debug', '| ───▶︎ ' . '{{FIN CONFIGURATION PLAYER}}' . ' : ' . $nb_player . ' / ' . $_devicename);
$nb_player++;
}
} else {
log::add('Freebox_OS', 'debug', '|:fg-warning: ───▶︎ PAS DE ' . $logicalinfo['playerName'] . ' SUR VOTRE BOX:/fg:');
log::add('Freebox_OS', 'debug', '|:fg-warning: ───▶︎ ' . '{{PAS DE}}' . ' ' . $logicalinfo['playerName'] . ' ' . '{{SUR VOTRE BOX}}' . ':/fg:');
}
}
log::add('Freebox_OS', 'debug', '└────────────────────');
Expand Down

0 comments on commit c192519

Please sign in to comment.