Skip to content

Commit

Permalink
advancedrewrite: Fix multi-valued fields specified as a single string
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 committed Jan 1, 2024
1 parent 296f01b commit ba66808
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 ba66808

Please sign in to comment.