https://bugs.kde.org/show_bug.cgi?id=506771

--- Comment #3 from Urs Fleisch <uflei...@users.sourceforge.net> ---
Please add the following file somewhere in your file system, e.g. as
RemoveLyrics3.qml (text between the dashed lines):

----
import Kid3 1.1

Kid3Script {
  onRun: {
    function doWork() {
      console.log("Processing %1".arg(app.selectionInfo.fileName));
      const [rc, stdout, stderr] = script.system("rmlyrics3",
[app.selectionInfo.filePath]);
      if (rc === undefined) {
        console.error("Please download\n" +
                     
"https://raw.githubusercontent.com/Moonbase59/rmlyrics3/refs/heads/master/rmlyrics3\n";
+
                      "to folder in PATH and make it executable!")
        Qt.quit();
        return;
      }

      if (rc != 0) {
        console.error("Returned %1".arg(rc));
      }
      if (stdout) {
        console.log(stdout.trim());
      }
      if (stderr) {
        console.error(stderr.trim());
      }
      if (!nextFile()) {
        Qt.quit();
      } else {
        setTimeout(doWork, 1);
      }
    }

    app.saveDirectory();
    firstFile();
    doWork();
  }
}
----

Then add a new user action ("User Actions" in the preferences) with Ouput=x,
Name=Remove Lyrics3, Command=@qml /path/to/your/script/RemoveLyrics3.qml

If this is OK for you, I could add it to the scripts provided with Kid3.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to