diff options
| author | Ada Isopods <me@bathynomus.xyz> | 2026-10-23 16:31:17 -0600 |
|---|---|---|
| committer | Ada Isopods <me@bathynomus.xyz> | 2026-10-23 16:31:17 -0600 |
| commit | 6e3aca4932083147c5a5e667674aa58b6b19cbdd (patch) | |
| tree | 9fbb1fe3ab09182fc8c9c1fcadd6e559c99795b4 /aud | |
| parent | 46da422000f60eb078b548c16f533ffff13d66fb (diff) | |
broaden audio file search
Diffstat (limited to 'aud')
| -rwxr-xr-x | aud/index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aud/index.php b/aud/index.php index 2aa9e8e..e09a770 100755 --- a/aud/index.php +++ b/aud/index.php @@ -8,9 +8,9 @@ <?php include("../seasonal.php"); - ini_set('display_errors', 1); - ini_set('display_startup_errors', 1); - error_reporting(E_ALL); + // ini_set('display_errors', 1); + // ini_set('display_startup_errors', 1); + // error_reporting(E_ALL); ?> <style> article { @@ -40,7 +40,7 @@ // Should display filename - and date of creation and id3 comment if possible. function test_audio($name) { // Returns true if a file is an mp3, false otherwise - return (strpos($name, ".mp3") > 0); + return (preg_match('/\.(mp3|ogg|opus|wav|flac|m4a)/', $name) > 0); } $audiodir = "../../data/deeptwisty/aud"; |
