From 5e895c7f2ee503e12a6c4d61502cb9323e5340de Mon Sep 17 00:00:00 2001 From: Lowmst Date: Thu, 28 Aug 2025 12:12:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E8=A7=84=E8=8C=83=E7=9A=84ISRC?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/metadata.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/metadata.py b/src/metadata.py index d6dd6b6..b52ca90 100644 --- a/src/metadata.py +++ b/src/metadata.py @@ -30,7 +30,7 @@ TAG_MAPPING = { "copyright": "cprt", # MP4 copyright "record_company": "©pub", # MP4 publisher "upc": "----:com.apple.iTunes:BARCODE", # MP4 barcode (UPC) - "isrc": "ISRC", # MP4 ISRC + "isrc": "----:com.apple.iTunes:ISRC", # MP4 ISRC "rtng": "rtng", # MP4 advisory rating } @@ -110,6 +110,9 @@ class SongMetadata(BaseModel): if key == "upc": tags.update({TAG_MAPPING[key]: (value.encode(),)}) continue + if key == "isrc": + tags.update({TAG_MAPPING[key]: (value.encode(),)}) + continue if key == "genre": tags.update({TAG_MAPPING[key]: value}) continue