3
3
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
4
<TITLE>eyeD3 0.6.4</TITLE>
4
<TITLE>eyeD3 0.6.11</TITLE>
5
5
</HEAD><BODY BGCOLOR="white" TEXT="black">
6
<P ALIGN="center"><CENTER><H1>eyeD3 0.6.4</H1>
6
<P ALIGN="center"><CENTER><H1>eyeD3 0.6.11</H1>
8
8
<I>Travis Shirk <<A HREF="mailto:travis@pobox.com">travis@pobox.com</A>></I><BR>
18
18
<A HREF="http://id3lib.sourceforge.net/id3/id3v1.html">v1.0/v1.1</A>
19
19
and <A HREF="http://id3lib.sourceforge.net/id3/develop.html">v2.3/v2.4</A>.
21
The current stable version is 0.6.4. It and earlier versions are
21
The current stable version is 0.6.11. It and earlier versions are
22
22
available <A HREF="http://eyed3.nicfit.net/releases/">here</A>.
24
24
See the <A HREF="NEWS">NEWS</A> and/or <A HREF="ChangeLog">ChangeLog</A> for changes.
45
45
See <A HREF="http://gentoo-portage.com/dev-python/eyeD3">here</A> for more info.
48
rpm -Uvh ./eyeD3-0.6.4-1.noarch.rpm
48
rpm -Uvh ./eyeD3-0.6.11-1.noarch.rpm
51
51
See <A HREF="http://packages.debian.org/eyed3">here</A> for more info.
53
53
See <A HREF="http://www.novell.com/products/linuxpackages/professional/python-eyed3.html">here</A> for more info.
54
<H2>Solaris SPARC and x86</H2>
55
Packages available from
56
<A HREF="http://www.blastwave.org/packages.php/pyeyed3">Blastwave</A>.
55
58
<H1>How to Use eyeD3</H1>
56
59
The 'eyeD3' utility program can perform most ID3 tasks, and it is also the
92
95
number. See --list-genres
93
96
-Y STRING, --year=STRING
94
97
Set a four digit year.
95
--comment=[LANGUAGE]:[DESCRIPTION]:COMMENT
98
-c [LANGUAGE]:[DESCRIPTION]:COMMENT, --comment=[LANGUAGE]:[DESCRIPTION]:COMMENT
100
-p STRING, --publisher=STRING
101
Set the publisher/label text
97
102
--remove-comments Remove all comment frames.
98
103
--add-image=IMG_PATH:TYPE[:DESCRIPTION]
99
104
Add an image to the tag. The description and type
100
105
optional, but when used, both ':' delimiters must be
101
106
present. The type MUST be an string that corresponds to
102
one given with --list-image-types.
103
-i, --write-images Causes all attached images (APIC frames) to be written
104
to the current directory.
107
one given with --list-image-types. If the IMG_PATH value
108
is empty the APIC frame with TYPE is removed.
109
-i DIR, --write-images=DIR
110
Causes all attached images (APIC frames) to be written
111
to the specified directory. If not directory specified
112
the images are written to .
105
113
--set-text-frame=FID:TEXT
106
114
Set the value of a text frame. To remove the frame,
107
115
specify an empty value. e.g., --set-text-frame="TDRC:"
112
120
--play-count=[+]N If this argument value begins with '+' the tag's play
113
121
count (PCNT) is incremented by N, otherwise the value is
114
122
set to exactly N.
123
--bpm=N Set the beats per minute value.
115
124
--unique-file-id=OWNER_ID:ID
116
125
Add a UFID frame. If the ID arg is empty the UFID frame
117
126
with OWNER_ID is removed. An OWNER_ID MUST be
131
140
data in the tag using substitution variables: %A
132
141
(artist), %a (album), %t (title), %n (track number), and
133
142
%N (total number of tracks)
143
--fs-encoding=ENCODING
144
Use the specified character encoding for the filename
134
146
-l, --list-genres Display the table of ID3 genres and exit
135
147
--list-image-types List all possible image types
136
148
--strict Fail for tags that violate the ID3 specification.
149
161
Reading the contents of an mp3 file containing either v1 or v2 tag info:
153
tag.link("/some/file.mp3");
154
print tag.getArtist();
155
print tag.getAlbum();
156
print tag.getTitle();
165
tag.link("/some/file.mp3")
166
print tag.getArtist()
159
171
Read an mp3 file (track length, bitrate, etc.) and access it's tag:
161
173
if eyeD3.isMp3File(f):
162
audioFile = eyeD3.Mp3AudioFile(f, self.opts.tagVersion);
163
tag = audioFile.getTag();
174
audioFile = eyeD3.Mp3AudioFile(f, self.opts.tagVersion)
175
tag = audioFile.getTag()
166
178
Specific tag versions can be selected:
168
tag.link("/some/file.mp3", eyeD3.ID3_V2);
169
tag.link("/some/file.mp3", eyeD3.ID3_V1);
170
tag.link("/some/file.mp3", eyeD3.ID3_ANY); # The default.
180
tag.link("/some/file.mp3", eyeD3.ID3_V2)
181
tag.link("/some/file.mp3", eyeD3.ID3_V1)
182
tag.link("/some/file.mp3", eyeD3.ID3_ANY_VERSION) # The default.
173
185
Or you can iterate over the raw frames:
176
tag.link("/some/file.mp3");
188
tag.link("/some/file.mp3")
177
189
for frame in tag.frames:
181
193
Once a tag is linked to a file it can be modified and saved:
183
tag.setArtist(u"Cro-Mags");
184
tag.setAlbulm(u"Age of Quarrel");
195
tag.setArtist(u"Cro-Mags")
196
tag.setAlbulm(u"Age of Quarrel")
188
200
If the tag linked in was v2 and you'd like to save it as v1:
190
tag.update(eyeD3.ID3_V1_1);
202
tag.update(eyeD3.ID3_V1_1)
193
205
Read in a tag and remove it from the file:
195
tag.link("/some/file.mp3");
207
tag.link("/some/file.mp3")
203
215
<H1>Bugs and Patches</H1>
204
216
Find bugs! Please submit all comments, bug reports, or feature requests
205
to Travis Shirk <<A HREF="mailto:travis@pobox.com">travis@pobox.com</A>>. Those of of the patch variety are
217
to Travis Shirk <<A HREF="mailto:travis@pobox.com">travis@pobox.com</A>>. Those of the patch variety are
206
218
especially welcome :)
208
220
<H1>See Also</H1>