mirror of
https://github.com/WorldObservationLog/AppleMusicDecrypt.git
synced 2026-01-15 14:22:54 -03:00
Merge pull request #51 from Lowmst/v2
Some checks failed
/ Build Windows (push) Has been cancelled
Some checks failed
/ Build Windows (push) Has been cancelled
fix: 不规范的ISRC标签
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user