Skip to content

Commit

Permalink
Merge pull request #965 from FlexBy420/patch-6
Browse files Browse the repository at this point in the history
fix ird download link
  • Loading branch information
clienthax authored Dec 14, 2024
2 parents 6823a30 + de8fc19 commit cce492c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Clients/IrdLibraryClient/IrdClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ public async Task<List<Ird>> DownloadAsync(string productCode, string localCache
}
}

public static Uri GetDownloadLink(string relativeLink) => new(BaseDownloadUri, relativeLink);
public static string GetDownloadLink(string relativeLink)
{
var encodedLink = Uri.EscapeDataString(relativeLink);
var fullUri = new Uri(BaseDownloadUri, encodedLink);
return fullUri.AbsoluteUri;
}
}
}

0 comments on commit cce492c

Please sign in to comment.