summaryrefslogtreecommitdiffstats
path: root/apps/media/lib_scanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/media/lib_scanner.php')
-rw-r--r--apps/media/lib_scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_scanner.php b/apps/media/lib_scanner.php
index 4039cce09ee..8b659c73b6e 100644
--- a/apps/media/lib_scanner.php
+++ b/apps/media/lib_scanner.php
@@ -140,7 +140,7 @@ class OC_MEDIA_SCANNER{
* @return bool
*/
public static function isMusic($filename){
- $ext=substr($filename,strrpos($filename,'.')+1);
+ $ext=strtolower(substr($filename,strrpos($filename,'.')+1));
return $ext=='mp3' || $ext=='flac' || $ext=='m4a' || $ext=='ogg' || $ext=='oga';
}
}