Skip to content

Commit

Permalink
fix(scanner): update changed cover files when scanning
Browse files Browse the repository at this point in the history
fixes: #158
  • Loading branch information
sentriz committed Oct 3, 2021
1 parent 3b975c6 commit f50817a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/scanner/scanner.go
Expand Up @@ -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()
Expand Down

0 comments on commit f50817a

Please sign in to comment.