2013-08-15 4 views

답변

3

ID3v2.3 태그 작성이 지원됩니다. 문서에이에게

1.22 - 2013.09.08 
... 
* ID3: 
    * id3v2.3 writing support (#85) 
    * Add iTunes podcast frames (TGID, TDES, WFED) (#141) 
    * Updated id3v1 genre list 
... 

그리고 : 나는 변경 로그에서 볼

update_to_v23() 
    Convert older (and newer) tags into an ID3v2.3 tag.  
    This updates incompatible ID3v2 frames to ID3v2.3 ones. If you intend to save tags as ID3v2.3, you must call this function at some point. 
    If you want to to go off spec and include some v2.4 frames in v2.3, remove them before calling this and add them back afterwards. 

내가 pip install 'mutagen>=1.22'와 버전 1.22를 다운로드 내 시스템을 강제했다; 그렇지 않으면 버전 1.21이되었습니다. 이제 다음 코드는 나를 위해 작동하는 것 같다 :

>>> audio = mutagen.File("path_to_your.mp3") 
>>> type(audio) 
<class 'mutagen.mp3.MP3'> 
>>> audio.tags.update_to_v23() 
+0

좋은 소식입니다. – prehawk

8

아래 저장 기능 태그에 "v2_version"옵션이 있습니다.

저장 (자기, 파일명 = 없음, V1 = 1 v2_version = 4 v23_sep = '

import mutagen 
audio=mutagen.File('1.mp3') 
#audio.tags.update_to_v23() 
audio.tags.save(v2_version=3) 

또한 도움말()

help(audio.tags.save) 
아래

를 설명되어/')

+0

이것은 Windows 7에서 내 태그를 올바르게 업데이트하는 생명의 은인이었습니다.이 대답이 수용되어야합니다. 감사! –