diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-08-16 20:07:00 +0200 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-08-16 20:07:00 +0200 |
| commit | daf29233e6350f97eb585d21d99e708ced8e66b7 (patch) | |
| tree | 206d3f018f76d19e16d473ebf71ae2354f79a7d6 | |
| parent | 15f7a2078b010b2a5aa644e05832a83e02c41bf0 (diff) | |
Invert the second if
| -rw-r--r-- | MediaBrowser.Providers/TV/TheTVDB/TvdbEpisodeProvider.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MediaBrowser.Providers/TV/TheTVDB/TvdbEpisodeProvider.cs b/MediaBrowser.Providers/TV/TheTVDB/TvdbEpisodeProvider.cs index 36e172dfb..22c630d98 100644 --- a/MediaBrowser.Providers/TV/TheTVDB/TvdbEpisodeProvider.cs +++ b/MediaBrowser.Providers/TV/TheTVDB/TvdbEpisodeProvider.cs @@ -224,15 +224,15 @@ namespace MediaBrowser.Providers.TV.TheTVDB var currentRole = episode.GuestStars[j]; var roleEndIndex = currentRole.IndexOf(')'); - if (roleEndIndex != -1) + if (roleEndIndex == -1) { - roles.Add(currentRole.TrimEnd(')')); - // Update the outer index (keep in mind it adds 1 after the iteration) - i = j; - break; + roles.Add(currentRole); } - roles.Add(currentRole); + roles.Add(currentRole.TrimEnd(')')); + // Update the outer index (keep in mind it adds 1 after the iteration) + i = j; + break; } result.AddPerson(new PersonInfo |
