From 97e9924a0b715ad43882dbaaae88d98281fa247a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 12 Apr 2022 22:04:55 -0700 Subject: [PATCH] Be more picky about multisession --- CHANGELIST.md | 1 + MPF.Modules/DiscImageCreator/Parameters.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index d627041f..13ff2276 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -59,6 +59,7 @@ - Parse and format CD multisession data - Convert triple space to tab - Fix clone issue with copy protection +- Be more picky about multisession ### 2.3 (2022-02-05) - Start overhauling Redump information pulling, again diff --git a/MPF.Modules/DiscImageCreator/Parameters.cs b/MPF.Modules/DiscImageCreator/Parameters.cs index 130d6bfb..e7acab84 100644 --- a/MPF.Modules/DiscImageCreator/Parameters.cs +++ b/MPF.Modules/DiscImageCreator/Parameters.cs @@ -407,7 +407,9 @@ namespace MPF.Modules.DiscImageCreator } // Attempt to get multisession data - info.CommonDiscInfo.CommentsSpecialFields[SiteCode.Multisession] = GetMultisessionInformation(basePath + "_disc.txt") ?? ""; + string cdMultiSessionInfo = GetMultisessionInformation(basePath + "_disc.txt"); + if (!string.IsNullOrWhiteSpace(cdMultiSessionInfo)) + info.CommonDiscInfo.CommentsSpecialFields[SiteCode.Multisession] = cdMultiSessionInfo; break;