Fixed the issue where the recently added scan was actually calling the RefreshMedia which ends up wiping out the Plex cache instead of refreshing the metadata... i'm a dumbass #3023

pull/3049/head
tidusjar 6 years ago
parent 7a6e247314
commit 846d0f766f

@ -53,7 +53,6 @@ namespace Ombi.Schedule.Jobs.Ombi
{
return;
}
const string episodeSQL = "DELETE FROM EmbyEpisode";
const string mainSql = "DELETE FROM EmbyContent";
await _embyRepo.ExecuteSql(episodeSQL);

@ -110,7 +110,7 @@ namespace Ombi.Schedule.Jobs.Plex
if ((processedContent?.HasProcessedContent ?? false) && recentlyAddedSearch)
{
// Just check what we send it
await OmbiQuartz.TriggerJob(nameof(IMediaDatabaseRefresh), "System");
await OmbiQuartz.TriggerJob(nameof(IRefreshMetadata), "System");
}
if ((processedContent?.HasProcessedContent ?? false) && recentlyAddedSearch)

Loading…
Cancel
Save