Skip to content

Commit

Permalink
Replaces %CDN_HOST_MEDIA_SSL% for Steam games (#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
KLee1248 authored and JosefNemec committed Jul 24, 2019
1 parent e9d2dfa commit 78893f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/Plugins/SteamLibrary/SteamMetadataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ internal SteamGameMetadata DownloadGameMetadata(uint appId, BackgroundSource bac
return metadata;
}

internal string ParseDescription(string description)
{
return description.Replace("%CDN_HOST_MEDIA_SSL%", "steamcdn-a.akamaihd.net");
}

internal GameMetadata GetGameMetadata(GameID gameId)
{
var appId = gameId.AppID;
Expand Down Expand Up @@ -312,7 +317,7 @@ internal GameMetadata GetGameMetadata(GameID gameId)

if (downloadedMetadata.StoreDetails != null)
{
gameInfo.Description = downloadedMetadata.StoreDetails.detailed_description;
gameInfo.Description = ParseDescription(downloadedMetadata.StoreDetails.detailed_description);
var cultInfo = new CultureInfo("en-US", false).TextInfo;
gameInfo.ReleaseDate = downloadedMetadata.StoreDetails.release_date.date;
gameInfo.CriticScore = downloadedMetadata.StoreDetails.metacritic?.score;
Expand Down

0 comments on commit 78893f9

Please sign in to comment.