Skip to content

Commit

Permalink
Grouped-album tasks have paths
Browse files Browse the repository at this point in the history
Close #1475, fix #825.
  • Loading branch information
sampsyo committed May 25, 2015
1 parent fc33656 commit 7f5c274
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion beets/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,9 @@ def group(item):
continue
tasks = []
for _, items in itertools.groupby(task.items, group):
task = ImportTask(items=list(items))
items = list(items)
task = ImportTask(task.toppath, [i.path for i in items],
items)
tasks += task.handle_created(session)
tasks.append(SentinelImportTask(task.toppath, task.paths))

Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Fixes:
* :doc:`/plugins/mpdupdate`: We now recommend the newer ``python-mpd2``
library instead of its unmaintained parent. Thanks to :user:`Somasis`.
:bug:`1472`
* The importer interface and log file now output a useful list of files
(instead of the word "None") when in album-grouping mode. :bug:`1475`
:bug:`825`


1.3.13 (April 24, 2015)
Expand Down
6 changes: 0 additions & 6 deletions docs/reference/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,6 @@ tracks from many albums mixed together.
The ``--group-albums`` or ``-g`` option to the :ref:`import-cmd` command is
equivalent, and the *G* interactive option invokes the same workflow.

.. note::

The :ref:`import log <import_log>` currently contains less information
in album-grouping mode. (Specifically, no directory names recorded because
directories are not used for grouping in this mode.)

Default: ``no``.

.. _autotag:
Expand Down

0 comments on commit 7f5c274

Please sign in to comment.