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…
Reference in New Issue