refined readme
This commit is contained in:
@@ -114,7 +114,7 @@ function read_audio(): array {
|
||||
for ($i = 0; $i < count($lines); $i += 2) {
|
||||
$head = trim($lines[$i]);
|
||||
$detail = isset($lines[$i + 1]) ? trim($lines[$i + 1]) : '';
|
||||
$cards[] = $detail !== '' ? "$head — $detail" : $head;
|
||||
$cards[] = $detail !== '' ? "$head - $detail" : $head;
|
||||
}
|
||||
$usb = shellout('lsusb');
|
||||
return [
|
||||
|
||||
@@ -47,8 +47,8 @@ if ($file !== '') {
|
||||
exit;
|
||||
}
|
||||
// BirdNET-Pi names the spectrogram as the FULL mp3 filename plus
|
||||
// ".png" - e.g. "American_Crow-82-…-20:25:29.mp3" pairs with
|
||||
// "American_Crow-82-…-20:25:29.mp3.png" (not "…-20:25:29.png").
|
||||
// ".png" - e.g. "American_Crow-82-...-20:25:29.mp3" pairs with
|
||||
// "American_Crow-82-...-20:25:29.mp3.png" (not "...-20:25:29.png").
|
||||
// Accept either form gracefully.
|
||||
if (substr($file, -4) === '.png') {
|
||||
$png = $file;
|
||||
|
||||
Reference in New Issue
Block a user