Skip to content

Commit c0c01b2

Browse files
committed
id3v23 config option (fix #388)
1 parent 0c7a3aa commit c0c01b2

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

beets/config_default.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ per_disc_numbering: no
4242
verbose: no
4343
terminal_encoding: utf8
4444
original_date: no
45+
id3v23: no
4546

4647
ui:
4748
terminal_width: 80

beets/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def write(self):
531531
setattr(f, key, getattr(self, key))
532532

533533
try:
534-
f.save()
534+
f.save(id3v23=beets.config['id3v23'].get(bool))
535535
except (OSError, IOError) as exc:
536536
raise util.FilesystemError(exc, 'write', (self.path,),
537537
traceback.format_exc())

docs/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ New stuff:
1919
to Henrique Ferreiro.
2020
* :doc:`/plugins/lastgenre`: You can now get multiple genres per album or
2121
track using the ``multiple`` config option. Thanks to rashley60 on GitHub.
22+
* A new :ref:`id3v23` config option makes beets write MP3 files' tags using
23+
the older ID3v2.3 metadata standard. Use this if you want your tags to be
24+
visible to Windows and some older players.
2225

2326
And some fixes:
2427

docs/faq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ a flag. There is no simple way to remedy this.)
265265
…not change my ID3 tags?
266266
------------------------
267267

268-
Beets writes `ID3v2.4 <http://www.id3.org/id3v2.4.0-structure>`__ tags.
268+
Beets writes `ID3v2.4 <http://www.id3.org/id3v2.4.0-structure>`__ tags by
269+
default.
269270
Some software, including Windows (i.e., Windows Explorer and Windows
270271
Media Player) and `id3lib/id3v2 <http://id3v2.sourceforge.net/>`__,
271272
don't support v2.4 tags. When using 2.4-unaware software, it might look
272273
like the tags are unmodified or missing completely.
273274

274-
This is due to `a limitation in the Mutagen
275-
library <http://code.google.com/p/mutagen/wiki/FAQ>`__.
275+
To enable ID3v2.3 tags, enable the :ref:`id3v23` config option.
276276

277277

278278
.. _invalid:

docs/reference/config.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ Set the maximum number of characters in a filename, after which names will be
210210
truncated. By default, beets tries to ask the filesystem for the correct
211211
maximum.
212212

213+
.. _id3v23:
214+
215+
id3v23
216+
~~~~~~
217+
218+
By default, beets writes MP3 tags using the ID3v2.4 standard, the latest
219+
version of ID3. Enable this option to instead use the older ID3v2.3 standard,
220+
which is preferred by certain older software such as Windows Media Player.
221+
222+
213223
Importer Options
214224
----------------
215225

0 commit comments

Comments
 (0)