Fixed #491 and added more logging around the email messages under the Info level

pull/511/head^2
tidusjar 8 years ago
parent 7db336e202
commit d4740aa723

@ -193,7 +193,7 @@ namespace PlexRequests.Services.Notification
{ {
client.Authenticate(settings.EmailUsername, settings.EmailPassword); client.Authenticate(settings.EmailUsername, settings.EmailPassword);
} }
Log.Info("sending message to {0} \r\n from: {1}\r\n Are we authenticated: {2}", message.To, message.From, client.IsAuthenticated);
await client.SendAsync(message); await client.SendAsync(message);
await client.DisconnectAsync(true); await client.DisconnectAsync(true);
} }

@ -578,7 +578,7 @@ function tvLoad() {
results.forEach(function (result) { results.forEach(function (result) {
var ep = result.episodes; var ep = result.episodes;
ep.forEach(function (episode) { ep.forEach(function (episode) {
var foundItem = tvObject.find(x => x.seasonNumber === episode.seasonNumber); var foundItem = tvObject.find(function(x) { return x.seasonNumber === episode.seasonNumber });
if (!foundItem) { if (!foundItem) {
var obj = { seasonNumber: episode.seasonNumber, episodes: [] } var obj = { seasonNumber: episode.seasonNumber, episodes: [] }
tvObject.push(obj); tvObject.push(obj);

@ -569,7 +569,9 @@ $(function () {
results.forEach(function (result) { results.forEach(function (result) {
var episodes = buildEpisodesView(result); var episodes = buildEpisodesView(result);
if (!seenSeasons.find(x => x === episodes.season)) { if (!seenSeasons.find(function(x) {
return x === episodes.season
})) {
// Create the seasons heading // Create the seasons heading
seenSeasons.push(episodes.season); seenSeasons.push(episodes.season);
var context = buildSeasonsCount(result); var context = buildSeasonsCount(result);

Loading…
Cancel
Save