mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
Merge pull request #4074 from cvium/fix_tmdb_null
Fix null exception in tmdb episode provider
This commit is contained in:
commit
4c2d2af569
@ -109,7 +109,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
|||||||
item.ParentIndexNumber = info.ParentIndexNumber;
|
item.ParentIndexNumber = info.ParentIndexNumber;
|
||||||
item.IndexNumberEnd = info.IndexNumberEnd;
|
item.IndexNumberEnd = info.IndexNumberEnd;
|
||||||
|
|
||||||
if (response.External_Ids.Tvdb_Id > 0)
|
if (response.External_Ids != null && response.External_Ids.Tvdb_Id > 0)
|
||||||
{
|
{
|
||||||
item.SetProviderId(MetadataProvider.Tvdb, response.External_Ids.Tvdb_Id.Value.ToString(CultureInfo.InvariantCulture));
|
item.SetProviderId(MetadataProvider.Tvdb, response.External_Ids.Tvdb_Id.Value.ToString(CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
|||||||
|
|
||||||
result.Item.Overview = seasonInfo.Overview;
|
result.Item.Overview = seasonInfo.Overview;
|
||||||
|
|
||||||
if (seasonInfo.External_Ids.Tvdb_Id > 0)
|
if (seasonInfo.External_Ids != null && seasonInfo.External_Ids.Tvdb_Id > 0)
|
||||||
{
|
{
|
||||||
result.Item.SetProviderId(MetadataProvider.Tvdb, seasonInfo.External_Ids.Tvdb_Id.Value.ToString(CultureInfo.InvariantCulture));
|
result.Item.SetProviderId(MetadataProvider.Tvdb, seasonInfo.External_Ids.Tvdb_Id.Value.ToString(CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
|||||||
remoteResult.SetProviderId(MetadataProvider.Tmdb, obj.Id.ToString(_usCulture));
|
remoteResult.SetProviderId(MetadataProvider.Tmdb, obj.Id.ToString(_usCulture));
|
||||||
remoteResult.SetProviderId(MetadataProvider.Imdb, obj.External_Ids.Imdb_Id);
|
remoteResult.SetProviderId(MetadataProvider.Imdb, obj.External_Ids.Imdb_Id);
|
||||||
|
|
||||||
if (obj.External_Ids.Tvdb_Id > 0)
|
if (obj.External_Ids != null && obj.External_Ids.Tvdb_Id > 0)
|
||||||
{
|
{
|
||||||
remoteResult.SetProviderId(MetadataProvider.Tvdb, obj.External_Ids.Tvdb_Id.Value.ToString(_usCulture));
|
remoteResult.SetProviderId(MetadataProvider.Tvdb, obj.External_Ids.Tvdb_Id.Value.ToString(_usCulture));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user