feat: Add ShowMovement Tag

This commit adds the `SHOWMOVEMENT` [tag](https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#show-work-movement-4). Historically, this tag originates from iTunes' MP4, but has since become widely used. It is created by Picard's Classical music [plugins](https://picard-docs.musicbrainz.org/en/variables/variables_classical.html) (such as "Classical Extras" or "Work & Movement").

The reasoning behind this tag is to display Work & Movement titles without redundant information and in a more uniform way. Moreover, it additionally serves as an implicit marker denoting classical music tracks (genre tags aren't sufficient).

If the client so chooses to support this tag, they can display `Work` and `Movement` instead of the track title allowing for cleaner display. Other clients can continue to display the `%title%` as before without any fuss.
This commit is contained in:
Miguel A. Arroyo
2024-07-21 14:46:36 -07:00
parent 8e42467bd2
commit e3809bd4f0
5 changed files with 7 additions and 1 deletions

View File

@@ -184,6 +184,9 @@ static constexpr struct {
{ TAG_MOOD, MPD_TAG_MOOD },
{ TAG_MUSICBRAINZ_RELEASEGROUPID,
MPD_TAG_MUSICBRAINZ_RELEASEGROUPID },
#endif
#if LIBMPDCLIENT_CHECK_VERSION(2,23,0)
{ TAG_SHOWMOVEMENT, MPD_TAG_SHOWMOVEMENT },
#endif
{ TAG_NUM_OF_ITEM_TYPES, MPD_TAG_COUNT }
};

View File

@@ -28,6 +28,7 @@ static constexpr struct tag_table tag_item_names_init[] = {
{"Work", TAG_WORK},
{"Movement", TAG_MOVEMENT},
{"MovementNumber", TAG_MOVEMENTNUMBER},
{"ShowMovement", TAG_SHOWMOVEMENT},
{"Ensemble", TAG_ENSEMBLE},
{"Location", TAG_LOCATION},
{"Grouping", TAG_GROUPING},

View File

@@ -30,6 +30,7 @@ enum TagType : uint8_t {
TAG_WORK,
TAG_MOVEMENT,
TAG_MOVEMENTNUMBER,
TAG_SHOWMOVEMENT,
TAG_ENSEMBLE,
TAG_LOCATION,
TAG_GROUPING,