Better categorization

This commit is contained in:
Matt Nadareski
2020-08-02 22:00:07 -07:00
parent 184913ad28
commit f9efa71fcc

View File

@@ -663,7 +663,7 @@ namespace DICUI.Utilities
ForeignTitleNonLatin = (AddPlaceholders ? Template.OptionalValue : ""),
DiscNumberLetter = (AddPlaceholders ? Template.OptionalValue : ""),
DiscTitle = (AddPlaceholders ? Template.OptionalValue : ""),
Category = DiscCategory.Games,
Category = null,
Region = null,
Languages = null,
Serial = (AddPlaceholders ? Template.RequiredIfExistsValue : ""),
@@ -946,6 +946,9 @@ namespace DICUI.Utilities
break;
}
// Set the category if it's not overriden
info.CommonDiscInfo.Category = info.CommonDiscInfo.Category ?? DiscCategory.Games;
// Comments is one of the few fields with odd handling
if (string.IsNullOrEmpty(info.CommonDiscInfo.Comments))
info.CommonDiscInfo.Comments = (AddPlaceholders ? Template.OptionalValue : "");