Skip to content

Commit 62eda56

Browse files
CodeWithMadecriptor
authored andcommitted
fix Mpeg4 AppleTags: MusicBrainzTrackId + Add MusicBrainzRecordingId, MusicBrainzWorkId
1 parent acb4abb commit 62eda56

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/TaglibSharp/Mpeg4/AppleTag.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,10 +1474,44 @@ public override string MusicBrainzReleaseArtistId {
14741474
/// http://musicbrainz.org/doc/PicardTagMapping
14751475
/// </remarks>
14761476
public override string MusicBrainzTrackId {
1477+
get { return GetDashBox ("com.apple.iTunes", "MusicBrainz Release Track Id"); }
1478+
set { SetDashBox ("com.apple.iTunes", "MusicBrainz Release Track Id", value); }
1479+
}
1480+
1481+
/// <summary>
1482+
/// Gets and sets the MusicBrainz RecordingID
1483+
/// </summary>
1484+
/// <value>
1485+
/// A <see cref="string" /> containing the MusicBrainz
1486+
/// RecordingID for the media described by the current
1487+
/// instance, or null if no value is present.
1488+
/// </value>
1489+
/// <remarks>
1490+
/// This property is implemented using the "dash"/"----" box type.
1491+
/// http://musicbrainz.org/doc/PicardTagMapping
1492+
/// </remarks>
1493+
public override string MusicBrainzRecordingId {
14771494
get { return GetDashBox ("com.apple.iTunes", "MusicBrainz Track Id"); }
14781495
set { SetDashBox ("com.apple.iTunes", "MusicBrainz Track Id", value); }
14791496
}
14801497

1498+
/// <summary>
1499+
/// Gets and sets the MusicBrainz WorkID
1500+
/// </summary>
1501+
/// <value>
1502+
/// A <see cref="string" /> containing the MusicBrainz
1503+
/// WorkID for the media described by the current
1504+
/// instance, or null if no value is present.
1505+
/// </value>
1506+
/// <remarks>
1507+
/// This property is implemented using the "dash"/"----" box type.
1508+
/// http://musicbrainz.org/doc/PicardTagMapping
1509+
/// </remarks>
1510+
public override string MusicBrainzWorkId {
1511+
get { return GetDashBox ("com.apple.iTunes", "MusicBrainz Work Id"); }
1512+
set { SetDashBox ("com.apple.iTunes", "MusicBrainz Work Id", value); }
1513+
}
1514+
14811515
/// <summary>
14821516
/// Gets and sets the MusicBrainz DiscID
14831517
/// </summary>

0 commit comments

Comments
 (0)