Explanation of ISRC edge case

This commit is contained in:
Nathan Thomas 2023-12-24 11:22:49 -08:00
parent 906332e61d
commit 86595984a0
1 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,9 @@ class Container(Enum):
elif k == "discnumber":
text = [(meta.discnumber, meta.album.disctotal)]
elif k == "isrc" and meta.isrc is not None:
# because ISRC is an mp4 freeform value (not supported natively)
# we have to pass in the actual bytes to mutagen
# See mutagen.MP4Tags.__render_freeform
text = meta.isrc.encode("utf-8")
else:
text = self._attr_from_meta(meta, k)