Skip to content

Commit

Permalink
- Fix encoding issue in last added format
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Mar 2, 2021
1 parent 5c6df60 commit ad0a0c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenDirectoryDownloader/DirectoryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ private static async Task<WebDirectory> ParseJavaScriptDrawn(string baseUrl, Web
{
parsedWebDirectory.Files.Add(new WebFile
{
Url = baseUrl + file.Groups["Link"].Value,
FileName = file.Groups["FileName"].Value,
Url = baseUrl + Path.GetFileName(WebUtility.UrlDecode(file.Groups["Link"].Value)),
FileName = Path.GetFileName(WebUtility.UrlDecode(file.Groups["FileName"].Value)),
FileSize = FileSizeHelper.ParseFileSize(file.Groups["FileSize"].Value)
});
}
Expand Down

0 comments on commit ad0a0c5

Please sign in to comment.