« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index 3f9611e..8d13f57 100644
--- a/ui.js
+++ b/ui.js
@@ -1002,7 +1002,7 @@ class AppElement extends FocusElement {
     }
   }
 
-  async processMetadata(item) {
+  async processMetadata(item, reprocess = false) {
     if (!this.config.canProcessMetadata) {
       return
     }
@@ -1015,7 +1015,7 @@ class AppElement extends FocusElement {
     this.metadataStatusLabel.visible = true
     this.fixLayout()
 
-    const counter = await this.backend.processMetadata(item)
+    const counter = await this.backend.processMetadata(item, reprocess)
 
     const tracksMsg = (counter === 1) ? '1 track' : `${counter} tracks`
     this.metadataStatusLabel.text = `Done processing metadata of ${tracksMsg}!`