Skip to content

Commit 95d6343

Browse files
CodeWithMadecriptor
authored andcommitted
fix Ogg/XiphComment: MusicBrainzTrackId + Add MusicBrainzRecordingId, MusicBrainzWorkId
1 parent 0c301f1 commit 95d6343

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

src/TaglibSharp/Ogg/XiphComment.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,13 +1291,47 @@ public override string MusicBrainzReleaseArtistId {
12911291
/// instance or <see langword="null" /> if no value present.
12921292
/// </value>
12931293
/// <remarks>
1294-
/// This property is implemented using the "MUSICBRAINZ_TRACKID" field.
1294+
/// This property is implemented using the "MUSICBRAINZ_RELEASETRACKID" field.
12951295
/// </remarks>
12961296
public override string MusicBrainzTrackId {
1297+
get { return GetFirstField ("MUSICBRAINZ_RELEASETRACKID"); }
1298+
set { SetField ("MUSICBRAINZ_RELEASETRACKID", value); }
1299+
}
1300+
1301+
/// <summary>
1302+
/// Gets and sets the MusicBrainz Recording ID for the media
1303+
/// represented by the current instance.
1304+
/// </summary>
1305+
/// <value>
1306+
/// A <see cref="string" /> object containing the MusicBrainz
1307+
/// RecordingID for the media represented by the current
1308+
/// instance or <see langword="null" /> if no value present.
1309+
/// </value>
1310+
/// <remarks>
1311+
/// This property is implemented using the "MUSICBRAINZ_TRACKID" field.
1312+
/// </remarks>
1313+
public override string MusicBrainzRecordingId {
12971314
get { return GetFirstField ("MUSICBRAINZ_TRACKID"); }
12981315
set { SetField ("MUSICBRAINZ_TRACKID", value); }
12991316
}
13001317

1318+
/// <summary>
1319+
/// Gets and sets the MusicBrainz Work ID for the media
1320+
/// represented by the current instance.
1321+
/// </summary>
1322+
/// <value>
1323+
/// A <see cref="string" /> object containing the MusicBrainz
1324+
/// WorkID for the media represented by the current
1325+
/// instance or <see langword="null" /> if no value present.
1326+
/// </value>
1327+
/// <remarks>
1328+
/// This property is implemented using the "MUSICBRAINZ_WORKID" field.
1329+
/// </remarks>
1330+
public override string MusicBrainzWorkId {
1331+
get { return GetFirstField ("MUSICBRAINZ_WORKID"); }
1332+
set { SetField ("MUSICBRAINZ_WORKID", value); }
1333+
}
1334+
13011335
/// <summary>
13021336
/// Gets and sets the MusicBrainz Disc ID for the media
13031337
/// represented by the current instance.

0 commit comments

Comments
 (0)