From ab81128e5c391b931abf15a5d74e70975de01e07 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 28 Jul 2011 23:06:20 +0200 Subject: [PATCH] dont throw error when the collection scanner cant detect the length of an audio file --- apps/media/lib_scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/media/lib_scanner.php b/apps/media/lib_scanner.php index 296acbdbaa..6ad04e7a1b 100644 --- a/apps/media/lib_scanner.php +++ b/apps/media/lib_scanner.php @@ -139,7 +139,7 @@ class OC_MEDIA_SCANNER{ } $size=$data['filesize']; $track=(isset($data['comments']['track']))?$data['comments']['track'][0]:0; - $length=round($data['playtime_seconds']); + $length=isset($data['playtime_seconds'])?round($data['playtime_seconds']):0; } if(!isset(self::$artists[$artist])){ $artistId=OC_MEDIA_COLLECTION::addArtist($artist);