From 1e23ea2e51079aabc04739b1e6df831b975946fb Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 14 May 2022 16:17:20 -0400 Subject: [PATCH] User feedback for deleted recordings --- scripts/play.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/play.php b/scripts/play.php index 7825dbc..7418a95 100644 --- a/scripts/play.php +++ b/scripts/play.php @@ -193,6 +193,7 @@ if(isset($_GET['species'])){ ?> $user = shell_exec("awk -F: '/1000/{print $1}' /etc/passwd"); $home = shell_exec("awk -F: '/1000/{print $6}' /etc/passwd"); $home = trim($home); + $iter=0; while($results=$result2->fetchArray(SQLITE3_ASSOC)) { $comname = preg_replace('/ /', '_', $results['Com_Name']); @@ -208,13 +209,14 @@ if(isset($_GET['species'])){ ?> if(!file_exists($home."/BirdSongs/Extracted/".$filename)) { continue; } + $iter++; echo " $date $time
$confidence
"; - }echo "";} + }if($iter == 0){ echo "No recordings were found on this date.

They may have been deleted to make space for new recordings. You can modify this setting for the future in Tools -> Settings -> Advanced Settings -> Full Disk Behavior.";}echo "";} if(isset($_GET['filename'])){ $name = $_GET['filename'];