Is it possible to automatically save the lyric .lrc/txt to folder immediately after a successful search?
Select, context menu, Download lyrics will batch download and save them. Although with separate window and more steps.
Do you mean by manually left click in the lyric panel and click save? I don't need this, I need the process to be fully automated, because I don't use the panel itself only it's fetch function...
In ESLyric there is a option ( Foobar -> Tools -> ESLyric ) called: Lyric save scheme: Save when loaded. I need the same option also in Lyric Show 3. That's what I am looking for.
I have a SMP script you may find useful.
It runs the command "View/Lyrics Show 3/Save" at a interval (1sec) until Lyric Show 3 downloads the lyrics.
It then reloads ESLyric and kills the timer.
"use strict";
window.DefinePanel('LS3 File Saver', {
author: 'zeremy'
});
let esl;
let eslyric;
if (utils.CheckComponent("foo_uie_eslyric")){
eslyric = true;
esl = new ActiveXObject("ESLyric");
}
let artist;
let title;
function on_playback_new_track(metadb) {
ls3_save(metadb);
}
function on_playback_dynamic_info_track() {
ls3_save(fb.GetNowPlaying());
}
function ls3_save(metadb) {
if (!metadb)
return;
let timer = setInterval(() => {
let path = fb.TitleFormat('$if2(%__@%,%path%)').EvalWithMetadb(metadb);
if (path.startsWith('http') || path.startsWith('mms')) {
artist = fb.TitleFormat("[%artist%]").Eval().replace(/[<>:"/\\|?*]/g, "_");
title = fb.TitleFormat("[%title%]").Eval().replace(/[<>:"/\\|?*]/g, "_");
} else {
artist = fb.TitleFormat("[%artist%]").EvalWithMetadb(metadb).replace(/[<>:"/\\|?*]/g, "_");
title = fb.TitleFormat("[%title%]").EvalWithMetadb(metadb).replace(/[<>:"/\\|?*]/g, "_");
}
let filename_lrc = fb.ProfilePath + "lyrics\\" + artist + " - " + title + ".lrc";
let filename_txt = fb.ProfilePath + "lyrics\\" + artist + " - " + title + ".txt";
if (utils.FileExists(filename_lrc) || utils.FileExists(filename_txt)) {
if (eslyric) esl.RunPanelContextMenu("Reload Lyric");
clearInterval(timer);
}
else {
fb.RunMainMenuCommand("View/Lyrics Show 3/Save");
}
}, 1000);
}