diff --git a/ModAssistant/Classes/Utils.cs b/ModAssistant/Classes/Utils.cs index 7d8bab2f..8ea6ef32 100644 --- a/ModAssistant/Classes/Utils.cs +++ b/ModAssistant/Classes/Utils.cs @@ -31,7 +31,7 @@ public class Constants public const string BeatModsURL = "https://beatmods.com"; public const string BeatModsVersions = "https://versions.beatmods.com/versions.json"; public const string BeatModsAlias = "https://alias.beatmods.com/aliases.json"; - public const string WeebCDNAPIURL = "https://pat.assistant.moe/api/v1.0/"; + public const string WeebCDNAPIURL = "https://waifu.pics/api/sfw/"; public const string BeatModsModsOptions = "mod?status=approved"; public const string MD5Spacer = " "; public static readonly char[] IllegalCharacters = new char[] @@ -60,9 +60,7 @@ public class Result public class WeebCDNRandomResponse { - public int index; public string url; - public string ext; } public static void SendNotify(string message, string title = null) diff --git a/ModAssistant/Pages/About.xaml.cs b/ModAssistant/Pages/About.xaml.cs index 5815b4de..8c09cf62 100644 --- a/ModAssistant/Pages/About.xaml.cs +++ b/ModAssistant/Pages/About.xaml.cs @@ -48,7 +48,7 @@ private async void HugsButton_Click(object sender, RoutedEventArgs e) private async Task WeebCDN(string type) { - var resp = await HttpClient.GetAsync(Utils.Constants.WeebCDNAPIURL + type + "/random"); + var resp = await HttpClient.GetAsync(Utils.Constants.WeebCDNAPIURL + type); var body = await resp.Content.ReadAsStringAsync(); var response = JsonSerializer.Deserialize(body); @@ -59,7 +59,7 @@ private async Task HeadPat() { try { - var image = await WeebCDN("pats"); + var image = await WeebCDN("pat"); PatImage.Load(image); return true; @@ -79,7 +79,7 @@ private async Task Hug() { try { - var image = await WeebCDN("hugs"); + var image = await WeebCDN("hug"); HugImage.Load(image); return true;