mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-17 20:42:25 +03:00
Handling a possible bug in the tag library
This commit is contained in:
parent
0b6093ce5d
commit
7a21665c97
@ -152,6 +152,13 @@ func artistId(t *itl.Track) string {
|
||||
}
|
||||
|
||||
func hasCoverArt(path string) bool {
|
||||
beego.Trace("hasCOverArt:", path)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
beego.Error("Recovered from tag panic:", r)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := os.Stat(path); err == nil {
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user