From 5ad436b0468899c65b95429856ad2b3a99e28038 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 11 Aug 2022 00:33:36 +0000 Subject: Songs: Allow m4a files as audio files --- laravel/app/Song.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'laravel/app/Song.php') diff --git a/laravel/app/Song.php b/laravel/app/Song.php index 98f11c3..c723e3a 100644 --- a/laravel/app/Song.php +++ b/laravel/app/Song.php @@ -70,6 +70,8 @@ class Song extends Model { if (file_exists("public/music/{$this->id}.mp3")) { return "/public/music/{$this->id}.mp3"; + } elseif (file_exists("public/music/{$this->id}.m4a")) { + return "/public/music/{$this->id}.m4a"; } } public static function chordTransform($chord) -- cgit 1.4.1