Also search for "GERMAN" if title ends with "Germany" and also match for title without "Germany"
This commit is contained in:
@@ -108,6 +108,20 @@ namespace UmlautAdaptarr.Models
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if a german title ends with "Germany" (e.g. Good Luck Guys Germany) also add a search string that replaces Germany with GERMAN
|
||||||
|
// (e.g. Good Luck Guys GERMAN). This is because reality shows often have different formats in different countries with the same
|
||||||
|
// name. // also add a matching title without GERMAN
|
||||||
|
if (germanTitle?.EndsWith("germany", StringComparison.OrdinalIgnoreCase) ?? false)
|
||||||
|
{
|
||||||
|
TitleSearchVariations = [.. TitleSearchVariations,
|
||||||
|
..
|
||||||
|
GenerateVariations(
|
||||||
|
(germanTitle[..^7] + "GERMAN").RemoveExtraWhitespaces(),
|
||||||
|
mediaType)];
|
||||||
|
|
||||||
|
allTitleVariations.AddRange(GenerateVariations(germanTitle[..^8].Trim(), mediaType));
|
||||||
|
}
|
||||||
|
|
||||||
// If title contains ":" also match for "-"
|
// If title contains ":" also match for "-"
|
||||||
if (germanTitle?.Contains(':') ?? false)
|
if (germanTitle?.Contains(':') ?? false)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user