mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 01:23:09 +01:00
restore write argument for ft_in_title
This commit is contained in:
parent
4884ae3c46
commit
ac57ef0e67
1 changed files with 4 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ def update_metadata(item, feat_part, drop_feat):
|
||||||
item.title = new_title
|
item.title = new_title
|
||||||
|
|
||||||
|
|
||||||
def ft_in_title(item, drop_feat):
|
def ft_in_title(item, drop_feat, write):
|
||||||
"""Look for featured artists in the item's artist fields and move
|
"""Look for featured artists in the item's artist fields and move
|
||||||
them to the title.
|
them to the title.
|
||||||
"""
|
"""
|
||||||
|
|
@ -114,7 +114,9 @@ def ft_in_title(item, drop_feat):
|
||||||
ui.print_(u'no featuring artists found')
|
ui.print_(u'no featuring artists found')
|
||||||
|
|
||||||
ui.print_()
|
ui.print_()
|
||||||
|
if write:
|
||||||
|
item.try_write()
|
||||||
|
item.store()
|
||||||
|
|
||||||
class FtInTitlePlugin(BeetsPlugin):
|
class FtInTitlePlugin(BeetsPlugin):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue