Merge pull request #51 from Lowmst/v2
Some checks failed
/ Build Windows (push) Has been cancelled

fix: 不规范的ISRC标签
This commit is contained in:
世界观察日志
2025-08-28 12:16:49 +08:00
committed by GitHub

View File

@@ -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