You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ To describe the general workflow:
66
66
-**Cover fetching** or upgrades from the [Cover Art Archive](https://coverartarchive.org/).
67
67
- Care taken to ensure **no orphan** folders are left in the library when moves or copies occur.
68
68
- Validation to ensure your library is **always consistent** with no duplicates or unrecognised paths.
69
+
- Proper **multi-disc** release handling with correct disc numbers and subtitles.
69
70
- Safe **concurrent** processing with tree-style filesystem locking.
70
71
- Addons for fetching lyrics, calculating [ReplayGain](https://wiki.hydrogenaud.io/index.php?title=ReplayGain_2.0_specification), or any user-defined subprocess.
71
72
- Rescanning the library and processing it for new changes in MusicBrainz (`wrtag sync`).
@@ -516,15 +517,26 @@ On Windows, you can use drive letters and backslashes:
> Path formats are validated to ensure that all tracks from a release (including multi-disc releases) are placed in the same directory. If your format uses `.Media` fields in the directory portion (not just the filename), validation will fail.
522
+
519
523
## Available template data
520
524
521
525
The template has access to the following data:
522
526
523
527
- `.Release` - The full MusicBrainz release object (see [`type Release struct {`](https://github.com/sentriz/wrtag/blob/master/musicbrainz/musicbrainz.go))
524
528
- `.ReleaseDisambiguation` - A string for release and release group disambiguation
525
529
- `.IsCompilation` - Boolean indicating if this is a compilation album
526
-
- `.Media` - The current media being processed (see [`type Media struct {`](https://github.com/sentriz/wrtag/blob/master/musicbrainz/musicbrainz.go))
530
+
- `.Media` - The current media/disc being processed (see [`type Media struct {`](https://github.com/sentriz/wrtag/blob/master/musicbrainz/musicbrainz.go))
531
+
- `.Media.Position` - Disc number (1, 2, 3...)
532
+
- `.Media.TrackCount` - Total tracks on this disc
533
+
- `.Media.Title` - Disc subtitle (if any)
534
+
- `.Media.Format` - Media format (e.g., "CD", "Vinyl")
527
535
- `.Track` - The current track being processed (see [`type Track struct {`](https://github.com/sentriz/wrtag/blob/master/musicbrainz/musicbrainz.go))
536
+
- `.Track.Position` - Track number on the disc (1, 2, 3...)
537
+
- `.Track.Number` - Track number as string (e.g., "1", "A1" for vinyl)
538
+
- `.Track.Title` - Track title
539
+
- `.Track.Artists` - Track artists
528
540
- `.Ext` - The file extension for the current track, including the dot (e.g., ".flac")
529
541
530
542
## Helper functions
@@ -579,12 +591,18 @@ Including multi-album artist support, release group year, release group and rele
0 commit comments