mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-03 06:41:01 +00:00
parent
cdd44a2830
commit
4d6c9482ff
@ -59,6 +59,11 @@ func (e *taglibExtractor) extractMetadata(filePath string) (*taglibMetadata, err
|
||||
}
|
||||
|
||||
func hasEmbeddedImage(path string) bool {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Error("Panic while checking for images. Please report this error with a copy of the file", "path", path, r)
|
||||
}
|
||||
}()
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
log.Warn("Error opening file", "filePath", path, err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user