Fix #1699: Outdated API call

get_fields() was removed in 5420599839.
This commit is contained in:
Adrian Sampson 2015-11-04 20:25:17 -08:00
parent 19cf37263d
commit 7d52fa72ae
2 changed files with 2 additions and 1 deletions

View file

@ -271,7 +271,7 @@ class DuplicatesPlugin(BeetsPlugin):
Return same number of items, with the head item modified.
"""
fields = [f for sublist in Item.get_fields() for f in sublist]
fields = Item.all_keys()
for f in fields:
for o in objs[1:]:
if getattr(objs[0], f, None) in (None, ''):

View file

@ -30,6 +30,7 @@ Fixes:
(as well as with the explicit command). :bug:`1662` :bug:`1675`
* :doc:`/plugins/metasync`: Fix a crash when syncing with recent versions of
iTunes. :bug:`1700`
* :doc:`/plugins/duplicates`: Fix a crash when merging items. :bug:`1699`
1.3.15 (October 17, 2015)