fix(scanner): map movement number and count from ID3 MVIN and MP4 tags (#6357)

TagLib reports ID3 MVIN and MP4 ©mvi as movementnumber, and MP4 ©mvc as
movementcount. Neither name was aliased in mappings.yaml, so getSong
returned movements with the name only. Add both aliases.

ID3 MVIN stores the value as n/N (e.g. 1/4), which parsed as 0. Split it
at scan time, like track and disc numbers, so the stored movement tag holds
the number and movementtotal gets the count when the file has no explicit
total. Storing the clean value also lets smart playlist rules on the
movement tag match. Existing files need a full scan to pick this up.

Fixes #6356
This commit is contained in:
Deluan Quintão 2026-10-21 13:26:26 +01:00 • committed by GitHub
commit 56cc32aede
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 47 additions and 2 deletions

View file

@ -231,9 +231,9 @@ additional:
movementname:
aliases: [ mvnm, movementname, ©mvn ]
movementtotal:
aliases: [ movementtotal, mvc ]
aliases: [ movementtotal, movementcount, mvc ]
movement:
aliases: [ mvin, movement, mvi ]
aliases: [ mvin, movement, movementnumber, mvi ]
recordlabel:
aliases: [ tpub, label, publisher, ----:com.apple.itunes:label, wm/publisher, organization ]
album: true