@falstaff, thanks for your latest updates.
as you may know, i've been posting a mod with last.fm support so people can use your mood column to love/unlove tracks on last.fm. i've just thought of a really easy way you could build it in to save me doing it on each update. simply detect to see if the mood column title formatting contains this string: %lastfm_loved_db% - this is something the user can set themselves through the panel settings.
this is your current code for writing mood tags (starts on line 1364 WSHplaylist.js 1.3.2b3)
// Mood
if (this.tracktype < 2) {
// tag to file
if (this.l_mood != this.mood) {
if (this.metadb) {
var bool = this.metadb.UpdateFileInfoSimple("MOOD", getTimestamp());
this.mood = this.l_mood;
};
}; else {
var bool = this.metadb.UpdateFileInfoSimple("MOOD", "");
this.mood = 0;
};
};
you could replace it with this meaning original behaviour is retained for people who leave the column title formatting alone.
if (SOME_VARIABLE_CONTAINING_MOOD_COLUMN_TF.toLowerCase().indexOf("%lastfm_loved_db%") > -1) {
window.NotifyOthers("love", this.metadb);
} else {
// Mood
if (this.tracktype < 2) {
// tag to file
if (this.l_mood != this.mood) {
if (this.metadb) {
var bool = this.metadb.UpdateFileInfoSimple("MOOD", getTimestamp());
this.mood = this.l_mood;
};
}; else {
var bool = this.metadb.UpdateFileInfoSimple("MOOD", "");
this.mood = 0;
};
};
}
edit: of course you might not want to and that's fine. i already make my own mods but i thought it would be easier for other users.