mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Logging and slight change to the string matching now not dependant on Thread Culture #2866
This commit is contained in:
parent
0fb6e31bfb
commit
88cdfea9a9
1 changed files with 4 additions and 3 deletions
|
@ -160,7 +160,8 @@ namespace Ombi.Schedule.Jobs.Plex
|
|||
|
||||
foreach (var content in allContent)
|
||||
{
|
||||
if (content.viewGroup.Equals(PlexMediaType.Episode.ToString(), StringComparison.CurrentCultureIgnoreCase))
|
||||
Logger.LogDebug($"Got type '{content.viewGroup}' to process");
|
||||
if (content.viewGroup.Equals(PlexMediaType.Episode.ToString(), StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
Logger.LogDebug("Found some episodes, this must be a recently added sync");
|
||||
var count = 0;
|
||||
|
@ -204,7 +205,7 @@ namespace Ombi.Schedule.Jobs.Plex
|
|||
episodesProcessed.AddRange(episodesAdded.Select(x => x.Id));
|
||||
}
|
||||
}
|
||||
if (content.viewGroup.Equals(PlexMediaType.Show.ToString(), StringComparison.CurrentCultureIgnoreCase))
|
||||
if (content.viewGroup.Equals(PlexMediaType.Show.ToString(), StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
// Process Shows
|
||||
Logger.LogDebug("Processing TV Shows");
|
||||
|
@ -234,7 +235,7 @@ namespace Ombi.Schedule.Jobs.Plex
|
|||
|
||||
await Repo.SaveChangesAsync();
|
||||
}
|
||||
if (content.viewGroup.Equals(PlexMediaType.Movie.ToString(), StringComparison.CurrentCultureIgnoreCase))
|
||||
if (content.viewGroup.Equals(PlexMediaType.Movie.ToString(), StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
Logger.LogDebug("Processing Movies");
|
||||
foreach (var movie in content?.Metadata ?? new Metadata[] { })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue