diff --git a/src/NzbDrone.Core/NetImport/Trakt/TraktAPI.cs b/src/NzbDrone.Core/NetImport/Trakt/TraktAPI.cs index 175ff0555..e09ce89be 100644 --- a/src/NzbDrone.Core/NetImport/Trakt/TraktAPI.cs +++ b/src/NzbDrone.Core/NetImport/Trakt/TraktAPI.cs @@ -15,7 +15,7 @@ namespace NzbDrone.Core.NetImport.Trakt public class Movie { public string title { get; set; } - public int year { get; set; } + public int? year { get; set; } public Ids ids { get; set; } } diff --git a/src/NzbDrone.Core/NetImport/Trakt/TraktParser.cs b/src/NzbDrone.Core/NetImport/Trakt/TraktParser.cs index 611dfc5b8..f6e80bad2 100644 --- a/src/NzbDrone.Core/NetImport/Trakt/TraktParser.cs +++ b/src/NzbDrone.Core/NetImport/Trakt/TraktParser.cs @@ -57,7 +57,7 @@ namespace NzbDrone.Core.NetImport.Trakt Title = movie.movie.title, ImdbId = movie.movie.ids.imdb, TmdbId = movie.movie.ids.tmdb, - Year = movie.movie.year + Year = (movie.movie.year ?? 0) }); } diff --git a/src/UI/Settings/NetImport/Edit/NetImportEditView.js b/src/UI/Settings/NetImport/Edit/NetImportEditView.js index 9c6c25101..ba08dd809 100644 --- a/src/UI/Settings/NetImport/Edit/NetImportEditView.js +++ b/src/UI/Settings/NetImport/Edit/NetImportEditView.js @@ -25,7 +25,7 @@ var view = Marionette.ItemView.extend({ events : { 'click .x-back' : '_back', 'click .x-captcha-refresh' : '_onRefreshCaptcha', - 'change .x-root-folder' : '_rootFolderChanged', + 'change .x-root-folder' : '_rootFolderChanged', }, _deleteView : DeleteView, diff --git a/src/UI/Settings/NetImport/Edit/NetImportEditViewTemplate.hbs b/src/UI/Settings/NetImport/Edit/NetImportEditViewTemplate.hbs index 7653fa0e0..1d18dea5c 100644 --- a/src/UI/Settings/NetImport/Edit/NetImportEditViewTemplate.hbs +++ b/src/UI/Settings/NetImport/Edit/NetImportEditViewTemplate.hbs @@ -66,7 +66,11 @@