commit
f04627e1e8
|
@ -88,19 +88,22 @@ namespace MediaBrowser.Providers.TV
|
||||||
|
|
||||||
var seriesDataPath = await TvdbSeriesProvider.Current.EnsureSeriesInfo(seriesProviderIds, series.GetPreferredMetadataLanguage(), cancellationToken).ConfigureAwait(false);
|
var seriesDataPath = await TvdbSeriesProvider.Current.EnsureSeriesInfo(seriesProviderIds, series.GetPreferredMetadataLanguage(), cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
var path = Path.Combine(seriesDataPath, "banners.xml");
|
if (!string.IsNullOrWhiteSpace(seriesDataPath))
|
||||||
|
{
|
||||||
|
var path = Path.Combine(seriesDataPath, "banners.xml");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return GetImages(path, item.GetPreferredMetadataLanguage(), seasonNumber, cancellationToken);
|
return GetImages(path, item.GetPreferredMetadataLanguage(), seasonNumber, cancellationToken);
|
||||||
}
|
}
|
||||||
catch (FileNotFoundException)
|
catch (FileNotFoundException)
|
||||||
{
|
{
|
||||||
// No tvdb data yet. Don't blow up
|
// No tvdb data yet. Don't blow up
|
||||||
}
|
}
|
||||||
catch (DirectoryNotFoundException)
|
catch (DirectoryNotFoundException)
|
||||||
{
|
{
|
||||||
// No tvdb data yet. Don't blow up
|
// No tvdb data yet. Don't blow up
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrWhiteSpace(tvdbId))
|
if (!string.IsNullOrWhiteSpace(tvdbId))
|
||||||
{
|
{
|
||||||
item.SetProviderId(MetadataProviders.Tvcom, tvdbId);
|
item.SetProviderId(MetadataProviders.Tvdb, tvdbId);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user