Improved text decoding for many malformed files Tag.link('/some/file.mp3') # no tag in this file, link returned FalseĪdded option to ignore encoding errors ignore_errors #73 Read in a tag and remove it from the file: tag.link("/some/file.mp3") If the tag linked in was v2 and you'd like to save it as v1: tag.update(eyeD3.ID3_V1_1) Once a tag is linked to a file it can be modified and saved: tag.setArtist(u"Cro-Mags") ![]() Or you can iterate over the raw frames: tag = eyeD3.Tag() Tag.link("/some/file.mp3", eyeD3.ID3_ANY_VERSION) # The default. Specific tag versions can be selected: tag.link("/some/file.mp3", eyeD3.ID3_V2) Read an mp3 file (track length, bitrate, etc.) and access it's tag: if eyeD3.isMp3File(f): Reading the contents of an mp3 file containing either v1 or v2 tag info: import eyeD3 ![]() Relevant examples from the website are below. You'll have to install using pip or download the tar and execute python setup.py install from the source folder. I found that it could add artwork to the ID3 tag which the other modules I looked at couldn't. I used eyeD3 the other day with a lot of success.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |