From 61b632f2b428e7e2602b468526272775c83b6690 Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 23 Sep 2025 09:53:46 -0400 Subject: [PATCH 1/3] Add option to not write metadata --- beetsplug/convert.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 102976dd7..e72f8c75a 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -122,6 +122,7 @@ class ConvertPlugin(BeetsPlugin): "threads": os.cpu_count(), "format": "mp3", "id3v23": "inherit", + "write_metadata": True, "formats": { "aac": { "command": ( @@ -446,8 +447,9 @@ class ConvertPlugin(BeetsPlugin): if id3v23 == "inherit": id3v23 = None - # Write tags from the database to the converted file. - item.try_write(path=converted, id3v23=id3v23) + # Write tags from the database to the file if requested + if self.config["write_metadata"].get(bool): + item.try_write(path=converted, id3v23=id3v23) if keep_new: # If we're keeping the transcoded file, read it again (after From 98170f6c04e05f85ccb76eb6e1e741b6f16f4470 Mon Sep 17 00:00:00 2001 From: Multipixelone Date: Tue, 23 Sep 2025 19:07:13 -0400 Subject: [PATCH 2/3] add documentation for write_metadata option --- docs/changelog.rst | 1 + docs/plugins/convert.rst | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index c2d6ea1cf..cb10c5810 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,7 @@ New features: - :doc:`plugins/lastgenre`: Add a ``--pretend`` option to preview genre changes without storing or writing them. +- :doc:`plugins/convert`: Add a config option to disable writing metadata to converted files. Bug fixes: diff --git a/docs/plugins/convert.rst b/docs/plugins/convert.rst index 8917422c5..5cc2ace3f 100644 --- a/docs/plugins/convert.rst +++ b/docs/plugins/convert.rst @@ -97,6 +97,8 @@ The available options are: - **embed**: Embed album art in converted items. Default: ``yes``. - **id3v23**: Can be used to override the global ``id3v23`` option. Default: ``inherit``. +- **write_metadata**: Can be used to disable writing metadata to converted files. Default: + ``true``. - **max_bitrate**: By default, the plugin does not transcode files that are already in the destination format. This option instead also transcodes files with high bitrates, even if they are already in the same format as the output. From 699e0a12723f65dd6cefefe75dff52dadc1b90ab Mon Sep 17 00:00:00 2001 From: Multipixelone Date: Wed, 24 Sep 2025 22:11:47 -0400 Subject: [PATCH 3/3] fixup! add documentation for write_metadata option --- docs/changelog.rst | 3 ++- docs/plugins/convert.rst | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index fd3d41f3f..092a1a5a0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,7 +11,8 @@ New features: - :doc:`plugins/lastgenre`: Add a ``--pretend`` option to preview genre changes without storing or writing them. -- :doc:`plugins/convert`: Add a config option to disable writing metadata to converted files. +- :doc:`plugins/convert`: Add a config option to disable writing metadata to + converted files. - :doc:`plugins/discogs`: New config option `strip_disambiguation` to toggle stripping discogs numeric disambiguation on artist and label fields. diff --git a/docs/plugins/convert.rst b/docs/plugins/convert.rst index 5cc2ace3f..ecf60a85b 100644 --- a/docs/plugins/convert.rst +++ b/docs/plugins/convert.rst @@ -97,8 +97,8 @@ The available options are: - **embed**: Embed album art in converted items. Default: ``yes``. - **id3v23**: Can be used to override the global ``id3v23`` option. Default: ``inherit``. -- **write_metadata**: Can be used to disable writing metadata to converted files. Default: - ``true``. +- **write_metadata**: Can be used to disable writing metadata to converted + files. Default: ``true``. - **max_bitrate**: By default, the plugin does not transcode files that are already in the destination format. This option instead also transcodes files with high bitrates, even if they are already in the same format as the output.