Hey marc,
I got everything I need, thank you very much.
This is my own "b.update" function. The escaping was driving me crazy \(ಠ ὡ ಠ )/
b.update = function() {
if (!p.metadb) return;
var artist = encodeURIComponent(p.eval("%artist%"));
var title = encodeURIComponent(p.eval("%title%"));
var lastfm = "http://www.lastfm.de/music/" + artist + "/_/" + title;
var google = "http://www.google.de/search?tbm=isch&biw=1766&bih=871&q=" + artist + "+" + title + "+Cover";
var albumcover = p.eval("\"Powershell\" \"-File\" \"FoobarScripts\\exiftool.ps1\" \"%path%\" \"%filename%\"");
var mrtzcmp3 = "http://www.mrtzcmp3.net/" + artist + "_" + title + "_1s.html"
var mp3tag = p.eval("'\"..\\..\\Audio Tools\\MP3 Tag [Portable]\\Mp3tag.exe\"' \"$directory_path(%path%)\"");
var audacity = p.eval("'\"..\\..\\Audio Tools\\Audacity [Portable]\\AudacityPortable.exe\"' \"%path%\"");
var mp3gain = p.eval("\"FoobarScripts\\mp3gain\\mp3gain.cmd\" \"%path%\"");
var streamripper = p.eval("\"FoobarScripts\\streamripper\\streamripper.exe\" \"%path%\" \"-r\" \"-z\" \"-u\" \"-d 2.0\" \"FreeAmp/2.x\" \"-d\" \"C:\\Users\\nixdagibts\\Desktop\"");
b.buttons = {
lastfm: new button(0, 0, 32, 32, {normal: "lastfm.png", hover: "lastfm_h.png"}, function() { p.browser(lastfm); }, "Lastfm"),
google: new button(32, 0, 32, 32, {normal: "google.png", hover: "google_h.png"}, function() { p.browser(google); }, "Google"),
albumcover: new button(64, 0, 32, 32, {normal: "albumcover.png", hover: "albumcover_h.png"}, function() { p.run(albumcover); }, "AlbumCover"),
mrtzcmp3: new button(96, 0, 32, 32, {normal: "mrtzcmp3.png", hover: "mrtzcmp3_h.png"}, function() { p.browser(mrtzcmp3); }, "mrtzcmp3"),
mp3tag: new button(128, 0, 32, 32, {normal: "mp3tag.png", hover: "mp3tag_h.png"}, function() { p.run(mp3tag); }, "Mp3Tag"),
audacity: new button(160, 0, 32, 32, {normal: "audacity.png", hover: "audacity_h.png"}, function() { p.run(audacity); }, "Audacity"),
mp3gain: new button(192, 0, 32, 32, {normal: "mp3gain.png", hover: "mp3gain_h.png"}, function() { p.run(mp3gain); }, "mp3gain"),
streamripper: new button(224, 0, 32, 32, {normal: "streamripper.png", hover: "streamripper_h.png"}, function() { p.run(streamripper); }, "Streamripper")
}
window.Repaint();
}
function albumcover: calls a Powershell script which uses exiftool to extract the embedded album cover. After that, it takes the resulting png and uploads it to Google images to search for similar images.
function mrtzcmp3: calls a website with the current selected artist and title and does bad things
function mp3tag: opens mp3tag for extensive tag editing (rarely used since masstager scripts can do most of this too), uses relative pathes. As a bonus, it looks for the directory of the currently selected song and open the whole folder in mp3tag
function audacity: opens audacity for music editing with the current selected track using mp3gain from commandline
function mp3gain: opens the following CMD script which normalizes the current selected track to 91 dB
@ECHO OFF
FoobarScripts\mp3gain\mp3gain.exe /r /p /s s %1
FoobarScripts\mp3gain\mp3gain.exe /g 2 /p /s s %1
function streamripper: ripps a playing online radio (automatic downloading, renaming+ tagging of files)