Skip to content

Commit

Permalink
Merge pull request #5064 from Maxr1998/fix-multi-value-field-rewrite
Browse files Browse the repository at this point in the history
advancedrewrite: Fix multi-valued fields specified as a single string
  • Loading branch information
Serene-Arc authored Jan 13, 2024
2 parents 296f01b + ba66808 commit 828c6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/advancedrewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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} "
Expand Down

0 comments on commit 828c6e7

Please sign in to comment.