|
|
@ -83,7 +83,10 @@ func GetID3v11Tags(rs io.ReadSeeker) (*ID3v11Tags, error) { |
|
|
|
return nil, err |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
} |
|
|
|
// genre is one byte by specification
|
|
|
|
// genre is one byte by specification
|
|
|
|
genre := int(genreByte[0]) |
|
|
|
genre, exists := id3v1genres[int(genreByte[0])] |
|
|
|
|
|
|
|
if !exists { |
|
|
|
|
|
|
|
genre = "" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return &ID3v11Tags{ |
|
|
|
return &ID3v11Tags{ |
|
|
|
SongName: string(songname), |
|
|
|
SongName: string(songname), |
|
|
@ -92,7 +95,7 @@ func GetID3v11Tags(rs io.ReadSeeker) (*ID3v11Tags, error) { |
|
|
|
Year: year, |
|
|
|
Year: year, |
|
|
|
Comment: string(comment), |
|
|
|
Comment: string(comment), |
|
|
|
Track: track, |
|
|
|
Track: track, |
|
|
|
Genre: ID3v1Genres[genre], |
|
|
|
Genre: genre, |
|
|
|
}, nil |
|
|
|
}, nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|