Connect the Compilation tag

This commit is contained in:
Damiano Galassi committed 2024-07-03 14:13:58 +02:00
1 parent a3c0f8e1ea
commit a7abb72839
4 files changed
+15 -2

No files matched your search

+1
View File
@@ -707,6 +707,7 @@ MP42_OBJC_DIRECT_MEMBERS
MP42MetadataKeyPublisher, AVMetadataiTunesMetadataKeyPublisher,
MP42MetadataKeySoundEngineer, AVMetadataiTunesMetadataKeySoundEngineer,
MP42MetadataKeySoloist, AVMetadataiTunesMetadataKeySoloist,
MP42MetadataKeyDiscCompilation, AVMetadataiTunesMetadataKeyDiscCompilation,
MP42MetadataKeyCredits, AVMetadataiTunesMetadataKeyCredits,
MP42MetadataKeyThanks, AVMetadataiTunesMetadataKeyThanks,
MP42MetadataKeyOnlineExtras, AVMetadataiTunesMetadataKeyOnlineExtras,
+11
View File
@@ -137,6 +137,7 @@
MP42MetadataKeyPublisher,
MP42MetadataKeySoundEngineer,
MP42MetadataKeySoloist,
MP42MetadataKeyDiscCompilation,
MP42MetadataKeyCredits,
MP42MetadataKeyThanks,
MP42MetadataKeyWorkName,
@@ -222,6 +223,7 @@
MP42MetadataKeyPublisher,
MP42MetadataKeySoundEngineer,
MP42MetadataKeySoloist,
MP42MetadataKeyDiscCompilation,
MP42MetadataKeyCredits,
MP42MetadataKeyThanks,
MP42MetadataKeyWorkName,
@@ -620,6 +622,9 @@
if (tags->soloist) {
[self addMetadataItemWithUTF8String:tags->soloist identifier:MP42MetadataKeySoloist];
}
if (tags->compilation) {
[self addMetadataItemWithBool:*tags->compilation identifier:MP42MetadataKeyDiscCompilation];
}
if (tags->credits) {
[self addMetadataItemWithUTF8String:tags->credits identifier:MP42MetadataKeyCredits];
}
@@ -904,6 +909,12 @@
MP4TagsSetPublisher (tags, self.itemsMap[MP42MetadataKeyPublisher].stringValue.UTF8String);
MP4TagsSetSoundEngineer (tags, self.itemsMap[MP42MetadataKeySoundEngineer].stringValue.UTF8String);
MP4TagsSetSoloist (tags, self.itemsMap[MP42MetadataKeySoloist].stringValue.UTF8String);
if (self.itemsMap[MP42MetadataKeyDiscCompilation]) {
uint8_t value = self.itemsMap[MP42MetadataKeyDiscCompilation].numberValue.intValue;
MP4TagsSetCompilation(tags, &value);
}
MP4TagsSetCredits (tags, self.itemsMap[MP42MetadataKeyCredits].stringValue.UTF8String);
MP4TagsSetThanks (tags, self.itemsMap[MP42MetadataKeyThanks].stringValue.UTF8String);
MP4TagsSetOnlineExtras (tags, self.itemsMap[MP42MetadataKeyOnlineExtras].stringValue.UTF8String);
+1 -1
View File
@@ -86,7 +86,7 @@ extern NSString *const MP42MetadataKeyPerformer; // String
extern NSString *const MP42MetadataKeyPublisher; // String
extern NSString *const MP42MetadataKeySoundEngineer; // String
extern NSString *const MP42MetadataKeySoloist; // String
extern NSString *const MP42MetadataKeyDiscCompilation; // String
extern NSString *const MP42MetadataKeyDiscCompilation; // Int
// Classic Music Specific Metadata Keys
extern NSString *const MP42MetadataKeyWorkName; // String
+2 -1
View File
@@ -52,7 +52,8 @@ static NSCalendar *_calendar;
MP42MetadataKeyGapless: @(MP42MetadataItemDataTypeBool),
MP42MetadataKeyiTunesU: @(MP42MetadataItemDataTypeBool),
MP42MetadataKeyPodcast: @(MP42MetadataItemDataTypeBool),
MP42MetadataKeyShowWorkAndMovement: @(MP42MetadataItemDataTypeBool)};
MP42MetadataKeyShowWorkAndMovement: @(MP42MetadataItemDataTypeBool),
MP42MetadataKeyDiscCompilation: @(MP42MetadataItemDataTypeBool)};
}
NSTimeZone *gmt = [NSTimeZone timeZoneForSecondsFromGMT:0];