A live bird collage card for your Home Assistant dashboard.
Remove useless under_base
Alexandre3465305fd603
diff --git a/scripts/species_tools.php b/scripts/species_tools.phpindex 7df5df02..876db43b 100644--- a/scripts/species_tools.php+++ b/scripts/species_tools.php@@ -85,7 +85,7 @@ function collect_species_targets(SQLite3 $db, string $species, string $home, $bajoin_path($home, 'BirdSongs/Extracted/By_Date/shifted', $row['Date'], $dir, $row['File_Name']),];foreach ($candidates as $c) {- if (can_unlink($c) && under_base($c, $base)) { $files[$c] = true; $dirs[] = dirname($c); continue; }+ if (can_unlink($c)) { $files[$c] = true; $dirs[] = dirname($c); continue; }$d = realpath(dirname($c));if ($d !== false) {$alt = $d . DIRECTORY_SEPARATOR . basename($c);