diff --git a/FoliCon/Modules/Util.cs b/FoliCon/Modules/Util.cs index 1971360e..7ef59871 100644 --- a/FoliCon/Modules/Util.cs +++ b/FoliCon/Modules/Util.cs @@ -621,6 +621,11 @@ public static (string ID, string MediaType) ReadMediaInfo(string folderPath) var filePath = Path.Combine(folderPath, GlobalVariables.MediaInfoFile); var id = File.Exists(filePath) ? InIHelper.ReadValue("ID", null, filePath) : null; var mediaType = File.Exists(filePath) ? InIHelper.ReadValue("MediaType", null, filePath) : null; + if (string.IsNullOrWhiteSpace(id)) + { + id = null; + mediaType = null; + } var mediaInfo = (ID: id, MediaType: mediaType); return mediaInfo; }