From ba66808c74836dec3d71a6e321f406a4c3362717 Mon Sep 17 00:00:00 2001 From: Maxr1998 Date: Mon, 1 Jan 2024 19:33:22 +0100 Subject: [PATCH] advancedrewrite: Fix multi-valued fields specified as a single string --- beetsplug/advancedrewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/advancedrewrite.py b/beetsplug/advancedrewrite.py index 639aa5247c..20f2b7e034 100644 --- a/beetsplug/advancedrewrite.py +++ b/beetsplug/advancedrewrite.py @@ -161,7 +161,7 @@ def __init__(self): ) elif isinstance(replacement, str): if Item._fields[fieldname] is MULTI_VALUE_DSV: - replacement = list(replacement) + replacement = [replacement] else: raise UserError( f"Invalid type of replacement {replacement} "