Merge pull request #5064 from Maxr1998/fix-multi-value-field-rewrite

advancedrewrite: Fix multi-valued fields specified as a single string
This commit is contained in:
Serene 2024-01-13 19:37:58 +10:00 committed by GitHub
commit 828c6e7dbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ class AdvancedRewritePlugin(BeetsPlugin):
)
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} "