restore write argument for ft_in_title

This commit is contained in:
Fabrice Laporte 2014-10-14 20:58:36 +02:00
parent 4884ae3c46
commit ac57ef0e67

View file

@ -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):