@ -150,9 +150,9 @@ namespace Ombi.Schedule.Jobs.Plex
var retVal = new ProcessedContent ( ) ;
var contentProcessed = new Dictionary < int , int > ( ) ;
var episodesProcessed = new List < int > ( ) ;
Logger . Log Information ( "Getting all content from server {0}" , servers . Name ) ;
Logger . Log Debug ( "Getting all content from server {0}" , servers . Name ) ;
var allContent = await GetAllContent ( servers , recentlyAddedSearch ) ;
Logger . Log Information ( "We found {0} items" , allContent . Count ) ;
Logger . Log Debug ( "We found {0} items" , allContent . Count ) ;
// Let's now process this.
var contentToAdd = new HashSet < PlexServerContent > ( ) ;
@ -163,7 +163,7 @@ namespace Ombi.Schedule.Jobs.Plex
{
if ( content . viewGroup . Equals ( PlexMediaType . Episode . ToString ( ) , StringComparison . CurrentCultureIgnoreCase ) )
{
Logger . Log Information ( "Found some episodes, this must be a recently added sync" ) ;
Logger . Log Debug ( "Found some episodes, this must be a recently added sync" ) ;
var count = 0 ;
foreach ( var epInfo in content . Metadata ? ? new Metadata [ ] { } )
{
@ -208,7 +208,7 @@ namespace Ombi.Schedule.Jobs.Plex
if ( content . viewGroup . Equals ( PlexMediaType . Show . ToString ( ) , StringComparison . CurrentCultureIgnoreCase ) )
{
// Process Shows
Logger . Log Information ( "Processing TV Shows" ) ;
Logger . Log Debug ( "Processing TV Shows" ) ;
var count = 0 ;
foreach ( var show in content . Metadata ? ? new Metadata [ ] { } )
{
@ -237,7 +237,7 @@ namespace Ombi.Schedule.Jobs.Plex
}
if ( content . viewGroup . Equals ( PlexMediaType . Movie . ToString ( ) , StringComparison . CurrentCultureIgnoreCase ) )
{
Logger . Log Information ( "Processing Movies" ) ;
Logger . Log Debug ( "Processing Movies" ) ;
foreach ( var movie in content ? . Metadata ? ? new Metadata [ ] { } )
{
// Let's check if we have this movie
@ -251,7 +251,7 @@ namespace Ombi.Schedule.Jobs.Plex
//var existing = await Repo.GetByKey(movie.ratingKey);
if ( existing ! = null )
{
Logger . Log Information ( "We already have movie {0}" , movie . title ) ;
Logger . Log Debug ( "We already have movie {0}" , movie . title ) ;
continue ;
}
@ -261,7 +261,7 @@ namespace Ombi.Schedule.Jobs.Plex
await Repo . Delete ( hasSameKey ) ;
}
Logger . Log Information ( "Adding movie {0}" , movie . title ) ;
Logger . Log Debug ( "Adding movie {0}" , movie . title ) ;
var metaData = await PlexApi . GetMetadata ( servers . PlexAuthToken , servers . FullUri ,
movie . ratingKey ) ;
var providerIds = PlexHelper . GetProviderIdFromPlexGuid ( metaData . MediaContainer . Metadata
@ -421,7 +421,7 @@ namespace Ombi.Schedule.Jobs.Plex
{
try
{
Logger . Log Information ( "We already have show {0} checking for new seasons" ,
Logger . Log Debug ( "We already have show {0} checking for new seasons" ,
existingContent . Title ) ;
// Ok so we have it, let's check if there are any new seasons
var itemAdded = false ;
@ -472,7 +472,7 @@ namespace Ombi.Schedule.Jobs.Plex
{
try
{
Logger . Log Information ( "New show {0}, so add it" , show . title ) ;
Logger . Log Debug ( "New show {0}, so add it" , show . title ) ;
// Get the show metadata... This sucks since the `metadata` var contains all information about the show
// But it does not contain the `guid` property that we need to pull out thetvdb id...
@ -573,7 +573,7 @@ namespace Ombi.Schedule.Jobs.Plex
. Select ( x = > x . Key . ToString ( ) ) . ToList ( ) ;
if ( ! keys . Contains ( dir . key ) )
{
Logger . Log Information ( "Lib {0} is not monitored, so skipping" , dir . key ) ;
Logger . Log Debug ( "Lib {0} is not monitored, so skipping" , dir . key ) ;
// We are not monitoring this lib
continue ;
}