mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
dont throw error when the collection scanner cant detect the length of an audio file
This commit is contained in:
parent
9e7baba977
commit
30307e736b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue