Check for null genre values.
This commit is contained in:
1 parent
15a0509306
commit
a5d17a8f9f
1 file changed
+5
-2
+5
-2
@@ -762,8 +762,11 @@ static const genreType_t genreType_strings[] = {
|
|||||||
forKey:@"Genre"];
|
forKey:@"Genre"];
|
||||||
|
|
||||||
if (tags->genreType && !tags->genre) {
|
if (tags->genreType && !tags->genre) {
|
||||||
[tagsDict setObject:[self genreFromIndex:*tags->genreType]
|
NSString *genre = [self genreFromIndex:*tags->genreType];
|
||||||
forKey:@"Genre"];
|
if (genre) {
|
||||||
|
[tagsDict setObject:genre
|
||||||
|
forKey:@"Genre"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tags->releaseDate)
|
if (tags->releaseDate)
|
||||||
|
|||||||
Reference in new issue
Block a user