Skip to content

Commit 4e17a08

Browse files
committed
Use task.imported_items() instead of task.items to avoid crashes
beetbox/beets#2537
1 parent 16681be commit 4e17a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beetsplug/mpdqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def import_task_files(self, task, session):
132132
return
133133

134134
tracks = []
135-
items = sorted(task.items, key=lambda x: x.track)
135+
items = sorted(task.imported_items(), key=lambda x: x.track)
136136
for item in items:
137137
destination = item.destination(fragment=True)
138138
self._log.debug(u'{0} will be added to queue', destination)

0 commit comments

Comments
 (0)