fix(scanner): update changed cover files when scanning

fixes: #158
This commit is contained in:
sentriz
2021-10-03 21:00:13 +01:00
parent 3b975c6780
commit f50817a3dc

View File

@@ -336,7 +336,7 @@ func (s *Scanner) callbackPost(fullPath string, info *godirwalk.Dirent) error {
// begin taking the current album off the stack and add it's
// parent, cover that we found, etc.
album := s.curAlbums.Pop()
if album.ParentID != 0 {
if album.Cover == s.curCover && album.ParentID != 0 {
return nil
}
album.ParentID = s.curAlbums.PeekID()