Skip to content

Commit

Permalink
Fix "Invalid image received" error
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Mar 24, 2021
1 parent c866033 commit 3dd0db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/Providers/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Helper
{
public static string GetImageUrl(Image image)
{
return image != null ? $"http://{Plugin.Instance.Configuration.Host}:{Plugin.Instance.Configuration.Port}/api/v3/Image/{image.Source}/{image.Type}/{image.ID}" : null;
return !image.RelativeFilepath.Equals("/") ? $"http://{Plugin.Instance.Configuration.Host}:{Plugin.Instance.Configuration.Port}/api/v3/Image/{image.Source}/{image.Type}/{image.ID}" : null;
}

/// <summary>
Expand Down

0 comments on commit 3dd0db3

Please sign in to comment.