mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
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:
commit
828c6e7dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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} "
|
||||
|
|
|
|||
Loading…
Reference in a new issue