From 7d52fa72aef6c94fa99b10489531693312cec5f9 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 4 Nov 2015 20:25:17 -0800 Subject: [PATCH] Fix #1699: Outdated API call get_fields() was removed in 54205998391b284801dba4cd1d595a591f23282a. --- beetsplug/duplicates.py | 2 +- docs/changelog.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py index 991fec935..a8ad4ac90 100644 --- a/beetsplug/duplicates.py +++ b/beetsplug/duplicates.py @@ -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, ''): diff --git a/docs/changelog.rst b/docs/changelog.rst index eb423079e..ac4202561 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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)