From 138bc5e1404e17a08a133d87d7b6f2049cba1219 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sat, 9 Jul 2022 13:24:50 -0400 Subject: [PATCH] update upload tasks --- EftPatchHelper/EftPatchHelper/Tasks/UploadTasks.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/EftPatchHelper/EftPatchHelper/Tasks/UploadTasks.cs b/EftPatchHelper/EftPatchHelper/Tasks/UploadTasks.cs index b56b1a3..1f10294 100644 --- a/EftPatchHelper/EftPatchHelper/Tasks/UploadTasks.cs +++ b/EftPatchHelper/EftPatchHelper/Tasks/UploadTasks.cs @@ -46,8 +46,16 @@ namespace EftPatchHelper.Tasks foreach (var pair in _options.MirrorList) { - // value is the link, key is the hub entry text - output += $"\n

{pair.Key}

"; + var displayText = pair.Key; + var link = pair.Value; + + if(link.Contains("gofile.io/download/direct/")) + { + // gofile direct link is only for the mirror list, the hub entry should use the normal link + link = link.Replace("gofile.io/download/direct/", "gofile.io/download/"); + } + + output += $"\n

{displayText}

"; } AnsiConsole.WriteLine(output);