Skip to content

Commit

Permalink
Fix: Downloading Metadata from IGDB causes a crash #264
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Nov 12, 2017
1 parent 7e3c1b3 commit 482269f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/Playnite/MetaProviders/IGDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ public Models.Game GetParsedGame(UInt64 id)

if (dbGame.cover != null)
{
game.Image = "https:" + dbGame.cover.url.Replace("t_thumb", "t_cover_big");
game.Image = dbGame.cover.url.Replace("t_thumb", "t_cover_big");
if (!game.Image.StartsWith("https:", StringComparison.InvariantCultureIgnoreCase))
{
game.Image = "https:" + game.Image;
}
}

if (dbGame.first_release_date != 0)
Expand Down

0 comments on commit 482269f

Please sign in to comment.