Skip to content

Commit

Permalink
Merge pull request #1550 from mblythe86/master
Browse files Browse the repository at this point in the history
fix auto-grouping
  • Loading branch information
sampsyo committed Jul 29, 2015
2 parents fd4a81c + 5710a96 commit 36e63c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beets/importer.py
Expand Up @@ -1408,7 +1408,8 @@ def group(item):
if task.skip:
continue
tasks = []
for _, items in itertools.groupby(task.items, group):
sorted_items = sorted(task.items, key=group)
for _, items in itertools.groupby(sorted_items, group):
items = list(items)
task = ImportTask(task.toppath, [i.path for i in items],
items)
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Expand Up @@ -77,6 +77,8 @@ Fixes:
on the user's path by default).
* Fix an incompatibility with certain JPEG files. Here's a relevant `Python
bug`_. Thanks to :user:`nathdwek`. :bug:`1545`
* Fix the 'Group albums' feature so it can handle when files aren't already
in order by album. :bug:`1550`

.. _Python bug: http://bugs.python.org/issue16512

Expand Down

0 comments on commit 36e63c0

Please sign in to comment.