« get me outta code hell

Fix reprocess metadata option not working - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-09-04 09:27:01 -0300
committerFlorrie <towerofnix@gmail.com>2019-09-04 09:27:01 -0300
commitd51c3b00e4b097dbae0707d1ef14dc41298ad0a1 (patch)
tree506c0dc7990770135307296a1b66e56cf488bce8
parent88d42caf4aaa5aa5a235b8f434704bbe8f6a9f92 (diff)
Fix reprocess metadata option not working
I'd forgotten to pass the reprocess flag through!
-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}!`