//handle the cases where InCinemas date is not known but Digital/Physical are and passed -- this refers to the issue being fixed along with these tests
//handle the cases where InCinemas date is not known but Digital/Physical are and passed -- this refers to the issue being fixed along with these tests
//Correct any Movies that reference profiles that are null
//Correct any Movies that reference profiles that are null
varsql=$"UPDATE \"Movies\" SET \"ProfileId\" = {mostCommonProfileId} WHERE \"Id\" IN(SELECT \"Movies\".\"Id\" FROM \"Movies\" LEFT OUTER JOIN \"Profiles\" ON \"Movies\".\"ProfileId\" = \"Profiles\".\"Id\" WHERE \"Profiles\".\"Id\" IS NULL)";
conn.Execute(sql,transaction:tran);
//Correct any Lists that reference profiles that are null
//Correct any Lists that reference profiles that are null
sql=$"UPDATE \"NetImport\" SET \"ProfileId\" = {mostCommonProfileId} WHERE \"Id\" IN(SELECT \"NetImport\".\"Id\" FROM \"NetImport\" LEFT OUTER JOIN \"Profiles\" ON \"NetImport\".\"ProfileId\" = \"Profiles\".\"Id\" WHERE \"Profiles\".\"Id\" IS NULL)";
//If the parsed size is greater than maxSize we don't want it
//If the parsed size is greater than maxSize we don't want it
if(subject.Release.Size>maxSize)
{
_logger.Debug("Item: {0}, Size: {1} is greater than maximum allowed size ({2} for {3}), rejecting",subject,subject.Release.Size,maxSize,subject.Movie.Title);
_logger.Debug("Temporarily ignoring list {0} till {1} due to recent failures.",importList.Definition.Name,blockedListStatus.DisabledTill.Value.ToLocalTime());
result.AnyFailure|=true;//Ensure we don't clean if a list is down
result.AnyFailure|=true;//Ensure we don't clean if a list is down
//A func ensures cookies are always updated to the latest. This way, the first page could update the cookies and then can be reused by the second page.
//A func ensures cookies are always updated to the latest. This way, the first page could update the cookies and then can be reused by the second page.