Skip to content

Commit

Permalink
New importer option incremental_skip_later, fixes #2773
Browse files Browse the repository at this point in the history
  • Loading branch information
msjyoo committed Jan 4, 2018
1 parent 456ffbd commit 94b779e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions beets/config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import:
delete: no
resume: ask
incremental: no
incremental_skip_later: no
from_scratch: no
quiet_fallback: skip
none_rec_action: ask
Expand Down
3 changes: 2 additions & 1 deletion beets/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ def finalize(self, session):
# Update progress.
if session.want_resume:
self.save_progress()
if session.config['incremental']:
if (session.config['incremental'] and
not session.config['incremental_skip_later']):
self.save_history()

self.cleanup(copy=session.config['copy'],
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ New features:

* :doc:`/plugins/replaygain`: add ``--force``, ``--write`` and ``--nowrite``
options to ``beet replaygain``. :bug:`2778`
* A new importer configuration ``incremental_skip_later`` allows you to avoid
recording skipped directories to the incremental list, so you can revisit them
later. Thanks to :user:`sekjun9878`.
:bug:`2773`


Fixes:
Expand Down
10 changes: 10 additions & 0 deletions docs/reference/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,16 @@ Either ``yes`` or ``no``, controlling whether imported directories are
recorded and whether these recorded directories are skipped. This
corresponds to the ``-i`` flag to ``beet import``.

.. _incremental_skip_later:

incremental_skip_later
~~~~~~~~~~~~~~~~~~~~~~

Either ``yes`` or ``no``, controlling whether skipped directories are
recorded in the incremental list. Set this option to ``yes`` if you would
like to revisit skipped directories later whilst using incremental
mode. Defaults to ``no``.

.. _from_scratch:

from_scratch
Expand Down

0 comments on commit 94b779e

Please sign in to comment.