update MovieDbPersonProvider

This commit is contained in:
Luke Pulverenti 2015-12-22 11:38:08 -05:00
parent 83a2823c17
commit d5a4a9424f

View file

@ -18,6 +18,7 @@ using System.Net;
using System.Threading;
using System.Threading.Tasks;
using CommonIO;
using MediaBrowser.Model.Net;
namespace MediaBrowser.Providers.People
{
@ -124,8 +125,20 @@ namespace MediaBrowser.Providers.People
var result = new MetadataResult<Person>();
if (!string.IsNullOrEmpty(tmdbId))
{
try
{
await EnsurePersonInfo(tmdbId, cancellationToken).ConfigureAwait(false);
}
catch (HttpException ex)
{
if (ex.StatusCode.HasValue && ex.StatusCode.Value == HttpStatusCode.NotFound)
{
return result;
}
throw;
}
var dataFilePath = GetPersonDataFilePath(_configurationManager.ApplicationPaths, tmdbId);