Hi,

I have been using beets for a while..
Thanks for the contributes !

Seems issues #185 affects me to..
I have started working for fix..
Am a newbie here, any guidance appreciated..

How we need to name new config option for duplicates ?
Also, if in 'quiet' mode, we still wanted to skip ? 

Attached code changes for review..

I am yet to understand testing framework used,
will update once completed..

-- 
You received this message because you are subscribed to the Google Groups 
"beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/beets/config_default.yaml b/beets/config_default.yaml
index 4c12c3d..757f1cc 100644
--- a/beets/config_default.yaml
+++ b/beets/config_default.yaml
@@ -17,6 +17,7 @@ import:
     quiet: no
     singletons: no
     default_action: apply
+    duplicate_default_action: ask
     languages: []
     detail: no
     flat: no
diff --git a/beets/ui/commands.py b/beets/ui/commands.py
index 75cae06..7c5349e 100644
--- a/beets/ui/commands.py
+++ b/beets/ui/commands.py
@@ -824,11 +824,18 @@ class TerminalImportSession(importer.ImportSession):
         log.warn(u"This {0} is already in the library!",
                  (u"album" if task.is_album else u"item"))
 
+        sel = config['import']['duplicate_default_action'].as_choice({
+            u'skip': u's',
+            u'keep': u'k',
+            u'remove': u'r',
+            u'ask': None,
+        })
+
         if config['import']['quiet']:
             # In quiet mode, don't prompt -- just skip.
             log.info(u'Skipping.')
             sel = u's'
-        else:
+        elif sel is None:
             # Print some detail about the existing and new items so the
             # user can make an informed decision.
             for duplicate in found_duplicates:

Reply via email to