Made some MP42Metadata methods class methods.
This commit is contained in:
1 parent
8c1980c81c
commit
d837d60945
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
/**
|
/**
|
||||||
* Returns the complete list of writable metadata.
|
* Returns the complete list of writable metadata.
|
||||||
*/
|
*/
|
||||||
- (NSArray<NSString *> *) writableMetadata;
|
+ (NSArray<NSString *> *) writableMetadata;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the list of the available genres.
|
* Returns the list of the available genres.
|
||||||
|
|||||||
+2
-2
@@ -343,7 +343,7 @@ static const genreType_t genreType_strings[] = {
|
|||||||
@"Sort TV Show"];
|
@"Sort TV Show"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray<NSString *> *) writableMetadata
|
+ (NSArray<NSString *> *) writableMetadata
|
||||||
{
|
{
|
||||||
return @[
|
return @[
|
||||||
@"Name",
|
@"Name",
|
||||||
@@ -569,7 +569,7 @@ static const genreType_t genreType_strings[] = {
|
|||||||
|
|
||||||
[metadata retain];
|
[metadata retain];
|
||||||
|
|
||||||
for (NSString *key in [self writableMetadata]) {
|
for (NSString *key in [MP42Metadata writableMetadata]) {
|
||||||
if ((tagValue = metadata.tagsDict[key])) {
|
if ((tagValue = metadata.tagsDict[key])) {
|
||||||
[tagsDict setObject:tagValue forKey:key];
|
[tagsDict setObject:tagValue forKey:key];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user