Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Song ratings
#10
(06-18-2020, 05:31 PM)okneloper Wrote: Looks like I am missing something here... my understanding was that all that is required is the front end change (display the rating and the means to set the rating) and a simple backend that would return/store the rating... what else is involved? Can you expand on the plugins bit, please?

The so-called "library" in moOde is in fact a highly specialized MPD "database" which is accessible only through MPD routines. Beyond the basic database read/write and other housekeeping functions, most features are implemented in the form of plugins. You can see them listed if you enter "mpd -V" from the command line.

All the metadata contained in tracks gets processed by one plugin or another in order to populate the MPD database. It's during this process that various items get transliterated into the tagset I pointed to in a previous message. So two things have to happen before moOde can see track metadata. There has to be a slot available in the database, e.g., an MPD-defined tag, for an item of interest and for each file format/encoding there has to be an input plugin which knows to map the corresponding item from that file's metadata tag into that slot.

To take my POPM example, the input plugin which deals with an ID3v2 tag has to know to map the content of the POPM field into some MPD-defined tag. Likewise, supposing that in FLAC files one has defined a VORBIS COMMENT BLOCK field name  as the text string "POPM", the input plugin which deals with VORBIS COMMENT BLOCK has to know to map the field value of that item into the same MPD tag.

And so forth for other metadata tagging schemes of interest.

Regards,
Kent

PS - I'm being a bit loose here. What MPD calls a "database" is not a full-fledged database. I forget if there's still some language to that effect in the MPD docs. Also, it's hard to differentiate between the industry's understanding of "metadata tag" as meaning the container of metadata added to a file and the MPD understanding of "tag" as meaning specific metadata items. I keep the notion of a tag straight in my own mind by remembering that my shirts come from the store with a tag which has items like stock number, size, washing instructions on it.

PPS - Obviously the VORBIS COMMENT BLOCK field name could be "RATING" or some other meaningful name as long as the MPD input plugin knows to map it.
Reply


Messages In This Thread
Song ratings - by okneloper - 06-18-2020, 09:06 AM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 10:30 AM
RE: Song ratings - by okneloper - 06-18-2020, 01:14 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 01:17 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 01:39 PM
RE: Song ratings - by okneloper - 06-18-2020, 02:03 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 02:11 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 02:20 PM
RE: Song ratings - by okneloper - 06-18-2020, 05:31 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 06:17 PM
RE: Song ratings - by okneloper - 06-18-2020, 06:44 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 07:00 PM
RE: Song ratings - by okneloper - 06-18-2020, 07:16 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 07:19 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 07:51 PM
RE: Song ratings - by okneloper - 06-18-2020, 08:02 PM
RE: Song ratings - by okneloper - 06-18-2020, 09:20 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 09:57 PM
RE: Song ratings - by okneloper - 06-19-2020, 07:56 AM
RE: Song ratings - by Tim Curtis - 06-19-2020, 12:22 PM
RE: Song ratings - by okneloper - 06-19-2020, 12:47 PM
RE: Song ratings - by Tim Curtis - 06-19-2020, 01:21 PM
RE: Song ratings - by TheOldPresbyope - 06-19-2020, 01:52 PM
RE: Song ratings - by okneloper - 06-19-2020, 04:21 PM
RE: Song ratings - by TheOldPresbyope - 06-19-2020, 04:59 PM
RE: Song ratings - by CallMeMike - 06-20-2020, 07:35 AM
RE: Song ratings - by DRONE7 - 06-20-2020, 09:11 AM
RE: Song ratings - by okneloper - 06-20-2020, 09:11 PM
RE: Song ratings - by okneloper - 02-26-2021, 09:35 AM
RE: Song ratings - by cprogrammer - 09-23-2021, 08:18 AM
RE: Song ratings - by Tim Curtis - 09-23-2021, 11:06 AM
RE: Song ratings - by cprogrammer - 09-23-2021, 11:42 AM
RE: Song ratings - by TheOldPresbyope - 09-23-2021, 01:17 PM
RE: Song ratings - by Tim Curtis - 09-23-2021, 01:26 PM
RE: Song ratings - by stefsam - 12-24-2021, 11:38 AM

Forum Jump: