Don't stop scanning album on media fail (#892)
* Don't stop scanning album on media fail * Update api/scanner/scanner_album.go accepting suggestion from Jordan Co-authored-by: Jordan Hellier <13520761+jordy2254@users.noreply.github.com> --------- Co-authored-by: Konstantin Koval <kkb@ukr.net> Co-authored-by: Jordan Hellier <13520761+jordy2254@users.noreply.github.com>
This commit is contained in:
parent
153f37e5fb
commit
b2d591bd1b
|
@ -103,7 +103,7 @@ func ScanAlbum(ctx scanner_task.TaskContext) error {
|
|||
mediaData := media_encoding.NewEncodeMediaData(media)
|
||||
|
||||
if err := scanMedia(ctx, media, &mediaData, i, len(albumMedia)); err != nil {
|
||||
return errors.Wrap(err, "album scan")
|
||||
scanner_utils.ScannerError("Error scanning media for album (%d) file (%s): %s\n", ctx.GetAlbum().ID, media.Path, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue