The medialib in XMMS2 already has automatic scoring:
sqlite> select artist,song,playsum from topsongs order by playsum desc limit 10;
Iris|Danger is the Shame|146
Iris|Lose in Wanting|99
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds