From ad0a0c593f008e5d3135684e34efc8f499597460 Mon Sep 17 00:00:00 2001 From: KoalaBear Date: Tue, 2 Mar 2021 18:23:04 +0100 Subject: [PATCH] - Fix encoding issue in last added format --- OpenDirectoryDownloader/DirectoryParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenDirectoryDownloader/DirectoryParser.cs b/OpenDirectoryDownloader/DirectoryParser.cs index 03b709e7..3fbf4855 100644 --- a/OpenDirectoryDownloader/DirectoryParser.cs +++ b/OpenDirectoryDownloader/DirectoryParser.cs @@ -264,8 +264,8 @@ private static async Task 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) }); }