update upload tasks

This commit is contained in:
IsWaffle 2022-07-09 13:24:50 -04:00
parent 52ef069f7b
commit 138bc5e140

View File

@ -46,8 +46,16 @@ namespace EftPatchHelper.Tasks
foreach (var pair in _options.MirrorList) foreach (var pair in _options.MirrorList)
{ {
// value is the link, key is the hub entry text var displayText = pair.Key;
output += $"\n<p><a href=\"{pair.Value}\">{pair.Key}</a></p>"; 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<p><a href=\"{link}\">{displayText}</a></p>";
} }
AnsiConsole.WriteLine(output); AnsiConsole.WriteLine(output);