mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
fix(plex-watchlist): Index out of bounds error
This commit is contained in:
parent
8cf066f084
commit
8cd556e268
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ namespace Ombi.Schedule.Jobs.Plex
|
||||||
if (!string.IsNullOrEmpty(providerId.TheTvDb))
|
if (!string.IsNullOrEmpty(providerId.TheTvDb))
|
||||||
{
|
{
|
||||||
result = await _movieDbApi.Find(providerId.TheTvDb, ExternalSource.tvdb_id);
|
result = await _movieDbApi.Find(providerId.TheTvDb, ExternalSource.tvdb_id);
|
||||||
hasResult = result?.tv_results?.Length > 0;
|
hasResult = movie ? result?.movie_results?.Length > 0 : result?.tv_results?.Length > 0;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(providerId.ImdbId) && !hasResult)
|
if (!string.IsNullOrEmpty(providerId.ImdbId) && !hasResult)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue