fix: rune not supported by encoding.

This commit is contained in:
TaurusXin 2024-11-08 14:59:37 +08:00
parent 300a412058
commit 686bfc79bf
Signed by: taurusxin
GPG Key ID: C334DCA04AC2D2CC
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ func (ncm *NeteaseCloudMusic) FixMetadata(fetchAlbumImageFromRemote bool) (bool,
return false, err
}
defer audioFile.Close()
audioFile.SetDefaultEncoding(id3v2.EncodingUTF8)
audioFile.SetTitle(ncm.mMetadata.mName)
audioFile.SetArtist(ncm.mMetadata.mArtist)
audioFile.SetAlbum(ncm.mMetadata.mAlbum)