mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
Merge pull request #1350 from MediaBrowser/master
update MovieDbPersonProvider
This commit is contained in:
commit
2a3609106c
1 changed files with 17 additions and 4 deletions
|
@ -18,6 +18,7 @@ using System.Net;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CommonIO;
|
using CommonIO;
|
||||||
|
using MediaBrowser.Model.Net;
|
||||||
|
|
||||||
namespace MediaBrowser.Providers.People
|
namespace MediaBrowser.Providers.People
|
||||||
{
|
{
|
||||||
|
@ -124,8 +125,20 @@ namespace MediaBrowser.Providers.People
|
||||||
var result = new MetadataResult<Person>();
|
var result = new MetadataResult<Person>();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(tmdbId))
|
if (!string.IsNullOrEmpty(tmdbId))
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
await EnsurePersonInfo(tmdbId, cancellationToken).ConfigureAwait(false);
|
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);
|
var dataFilePath = GetPersonDataFilePath(_configurationManager.ApplicationPaths, tmdbId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue