Skip to content
Snippets Groups Projects
Commit 30307e73 authored by Robin Appelman's avatar Robin Appelman
Browse files

dont throw error when the collection scanner cant detect the length of an audio file

parent 9e7baba9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment