Skip to content

Commit

Permalink
fix: don't look up crew/cast images if it's not available locally in …
Browse files Browse the repository at this point in the history
…the server
  • Loading branch information
revam committed Aug 19, 2024
1 parent 6e4fe63 commit ea69f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/API/Info/SeasonInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public bool IsEmpty(int offset = 0)
}

private static string? GetImagePath(Image image)
=> image != null && image.IsAvailable ? image.ToURLString(internalUrl: true) : null;
=> image != null && !string.IsNullOrEmpty(image.LocalPath) ? image.ToURLString(internalUrl: true) : null;

private static PersonInfo? RoleToPersonInfo(Role role)
=> role.Type switch
Expand Down

0 comments on commit ea69f41

Please sign in to comment.