Merge pull request #12 from PCJones/develop

v0.4
This commit is contained in:
Jonas F
2024-03-06 20:00:05 +01:00
committed by GitHub
2 changed files with 7 additions and 7 deletions

View File

@@ -98,7 +98,7 @@ namespace UmlautAdaptarr.Providers
mediaType: _mediaType mediaType: _mediaType
); );
logger.LogInformation($"Successfully fetched show {searchItem} from Sonarr."); logger.LogInformation($"Successfully fetched show {searchItem.Title} from Sonarr.");
return searchItem; return searchItem;
} }
} }
@@ -156,7 +156,7 @@ namespace UmlautAdaptarr.Providers
mediaType: _mediaType mediaType: _mediaType
); );
logger.LogInformation($"Successfully fetched show {searchItem} from Sonarr."); logger.LogInformation($"Successfully fetched show {searchItem.Title} from Sonarr.");
return searchItem; return searchItem;
} }
catch (Exception ex) catch (Exception ex)

View File

@@ -262,23 +262,23 @@ namespace UmlautAdaptarr.Services
return null; return null;
} }
if (category.StartsWith("EBook", StringComparison.OrdinalIgnoreCase) || category.StartsWith("Book", StringComparison.OrdinalIgnoreCase)) if (category == "7000" || category.StartsWith("EBook", StringComparison.OrdinalIgnoreCase) || category.StartsWith("Book", StringComparison.OrdinalIgnoreCase))
{ {
return "book"; return "book";
} }
else if (category.StartsWith("Movies", StringComparison.OrdinalIgnoreCase)) else if (category == "2000" || category.StartsWith("Movies", StringComparison.OrdinalIgnoreCase))
{ {
return "movies"; return "movies";
} }
else if (category.StartsWith("TV", StringComparison.OrdinalIgnoreCase)) else if (category == "5000" || category.StartsWith("TV", StringComparison.OrdinalIgnoreCase))
{ {
return "tv"; return "tv";
} }
else if (category.Contains("Audiobook", StringComparison.OrdinalIgnoreCase)) else if (category == "3030" || category.Contains("Audiobook", StringComparison.OrdinalIgnoreCase))
{ {
return "book"; return "book";
} }
else if (category.StartsWith("Audio")) else if (category == "3000" || category.StartsWith("Audio"))
{ {
return "audio"; return "audio";
} }