[Feature request] Add year to OnSongChange parameters

Forums:

MOC version: 
2.6.0~svn-r3005-3 (from Debian 12)

Would it be possible to add track/album year to OnSongChange config parameters? Thanks.

Just like I mentioned earlier, right now MOC doesn't read year from the tags at all. It is definitely possible to implement, also to add it to the "FormatString" option. It just requires some work to extend data structures used by MOC and to make sure all decoders actually read the year from file. I can try to add this feature to my fork of MOC, but I can't promise when I will have the time to work on it.

I have implemented this, at least for FLAC (I could also add for mp3 and ogg/opus, since that's the formats I'm using normally), not sure what is the best way to submit this change, do you know?

To submit it you should email the patch to mocmaint [at] daper [dot] net.

However you might also want to publish it to a public repo such as gitlab.com or github.com. I run such a repo with unofficial patches for MOC at https://gitlab.com/tomaszg/mocp, you can also submit a pull request there or email them to me.

Thanks, yes I published my changes on gitlab.com .