From 7e7ff15f758edb3786e86adfdd49894b57f9124b Mon Sep 17 00:00:00 2001 From: pcjones Date: Tue, 13 Feb 2024 01:47:08 +0100 Subject: [PATCH] Workaround for weird lidarr album title parsing --- UmlautAdaptarr/Services/TitleMatchingService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UmlautAdaptarr/Services/TitleMatchingService.cs b/UmlautAdaptarr/Services/TitleMatchingService.cs index b392896..a2ac35c 100644 --- a/UmlautAdaptarr/Services/TitleMatchingService.cs +++ b/UmlautAdaptarr/Services/TitleMatchingService.cs @@ -82,10 +82,9 @@ namespace UmlautAdaptarr.Services // Ensure we trim any leading delimiters from the suffix string suffix = originalTitle[matchEndPositionInOriginal..].TrimStart([' ', '-', '_', '.']).Trim(); - suffix = suffix.Replace("-", "."); // Concatenate the expected title with the remaining suffix - var updatedTitle = $"{searchItem.ExpectedAuthor} - {searchItem.ExpectedTitle} [] {suffix}"; + var updatedTitle = $"{searchItem.ExpectedAuthor} - {searchItem.ExpectedTitle}-[{suffix}]"; // Update the title element titleElement.Value = updatedTitle;