diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-28 23:06:20 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-28 23:34:39 +0200 |
commit | ab81128e5c391b931abf15a5d74e70975de01e07 (patch) | |
tree | 45b60e9bef0e3118f63e11ceae8edcb924cc6d0c /apps | |
parent | f1c2b5b304c2dab05468c82dc133155cc3b1fa7f (diff) | |
download | nextcloud-server-ab81128e5c391b931abf15a5d74e70975de01e07.tar.gz nextcloud-server-ab81128e5c391b931abf15a5d74e70975de01e07.zip |
dont throw error when the collection scanner cant detect the length of an audio file
Diffstat (limited to 'apps')
-rw-r--r-- | apps/media/lib_scanner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_scanner.php b/apps/media/lib_scanner.php index 296acbdbaa9..6ad04e7a1be 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); |