Invert the second if

pull/1629/head
Claus Vium 5 years ago
parent 15f7a2078b
commit daf29233e6

@ -224,17 +224,17 @@ namespace MediaBrowser.Providers.TV.TheTVDB
var currentRole = episode.GuestStars[j]; var currentRole = episode.GuestStars[j];
var roleEndIndex = currentRole.IndexOf(')'); var roleEndIndex = currentRole.IndexOf(')');
if (roleEndIndex != -1) if (roleEndIndex == -1)
{ {
roles.Add(currentRole);
}
roles.Add(currentRole.TrimEnd(')')); roles.Add(currentRole.TrimEnd(')'));
// Update the outer index (keep in mind it adds 1 after the iteration) // Update the outer index (keep in mind it adds 1 after the iteration)
i = j; i = j;
break; break;
} }
roles.Add(currentRole);
}
result.AddPerson(new PersonInfo result.AddPerson(new PersonInfo
{ {
Type = PersonType.GuestStar, Type = PersonType.GuestStar,

Loading…
Cancel
Save