diff --git a/PlexRequests.Services/Notification/EmailMessageNotification.cs b/PlexRequests.Services/Notification/EmailMessageNotification.cs index 07d5d01b8..a81a15290 100644 --- a/PlexRequests.Services/Notification/EmailMessageNotification.cs +++ b/PlexRequests.Services/Notification/EmailMessageNotification.cs @@ -193,7 +193,7 @@ namespace PlexRequests.Services.Notification { 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.DisconnectAsync(true); } diff --git a/PlexRequests.UI/Content/requests.js b/PlexRequests.UI/Content/requests.js index 765db5ecb..678fa60fd 100644 --- a/PlexRequests.UI/Content/requests.js +++ b/PlexRequests.UI/Content/requests.js @@ -578,7 +578,7 @@ function tvLoad() { results.forEach(function (result) { var ep = result.episodes; 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) { var obj = { seasonNumber: episode.seasonNumber, episodes: [] } tvObject.push(obj); diff --git a/PlexRequests.UI/Content/search.js b/PlexRequests.UI/Content/search.js index f720ae6ba..a6d85af44 100644 --- a/PlexRequests.UI/Content/search.js +++ b/PlexRequests.UI/Content/search.js @@ -77,7 +77,7 @@ $(function () { if (searchTimer) { clearTimeout(searchTimer); } - searchTimer = setTimeout(function() { + searchTimer = setTimeout(function () { tvSearch(); }.bind(this), 800); }); @@ -493,7 +493,7 @@ $(function () { var $content = $("#seasonsBody"); $content.html(""); $('#selectedSeasonsId').val(id); - results.forEach(function(result) { + results.forEach(function (result) { var context = buildSeasonsContext(result); $content.append(seasonsTemplate(context)); }); @@ -512,7 +512,7 @@ $(function () { }; }); - $('#seasonsRequest').click(function(e) { + $('#seasonsRequest').click(function (e) { e.preventDefault(); var tvId = $('#selectedSeasonsId').val(); var url = createBaseUrl(base, '/search/seasons/'); @@ -531,7 +531,7 @@ $(function () { var $checkedSeasons = $('.selectedSeasons:checkbox:checked'); $checkedSeasons.each(function (index, element) { - if (index < $checkedSeasons.length -1) { + if (index < $checkedSeasons.length - 1) { seasonsParam = seasonsParam + element.id + ","; } else { seasonsParam = seasonsParam + element.id; @@ -545,7 +545,7 @@ $(function () { var url = $form.prop('action'); sendRequestAjax(data, type, url, tvId); - + }); $('#episodesModal').on('show.bs.modal', function (event) { @@ -569,7 +569,9 @@ $(function () { results.forEach(function (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 seenSeasons.push(episodes.season); var context = buildSeasonsCount(result); @@ -595,7 +597,7 @@ $(function () { loadingButton("episodesRequest", "primary"); var tvId = $('#selectedEpisodeId').val(); - + var $form = $('#form' + tvId); var model = []; @@ -632,7 +634,7 @@ $(function () { } }, - error: function(e) { + error: function (e) { console.log(e); generateNotify("Something went wrong!", "danger"); }