File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class Constants
3131 public const string BeatModsURL = "https://beatmods.com" ;
3232 public const string BeatModsVersions = "https://versions.beatmods.com/versions.json" ;
3333 public const string BeatModsAlias = "https://alias.beatmods.com/aliases.json" ;
34- public const string WeebCDNAPIURL = "https://pat.assistant.moe /api/v1.0 /" ;
34+ public const string WeebCDNAPIURL = "https://waifu.pics /api/sfw /" ;
3535 public const string BeatModsModsOptions = "mod?status=approved" ;
3636 public const string MD5Spacer = " " ;
3737 public static readonly char [ ] IllegalCharacters = new char [ ]
@@ -60,9 +60,7 @@ public class Result
6060
6161 public class WeebCDNRandomResponse
6262 {
63- public int index ;
6463 public string url ;
65- public string ext ;
6664 }
6765
6866 public static void SendNotify ( string message , string title = null )
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ private async void HugsButton_Click(object sender, RoutedEventArgs e)
4848
4949 private async Task < string > WeebCDN ( string type )
5050 {
51- var resp = await HttpClient . GetAsync ( Utils . Constants . WeebCDNAPIURL + type + "/random" ) ;
51+ var resp = await HttpClient . GetAsync ( Utils . Constants . WeebCDNAPIURL + type ) ;
5252 var body = await resp . Content . ReadAsStringAsync ( ) ;
5353
5454 var response = JsonSerializer . Deserialize < Utils . WeebCDNRandomResponse > ( body ) ;
@@ -59,7 +59,7 @@ private async Task<bool> HeadPat()
5959 {
6060 try
6161 {
62- var image = await WeebCDN ( "pats " ) ;
62+ var image = await WeebCDN ( "pat " ) ;
6363 PatImage . Load ( image ) ;
6464
6565 return true ;
@@ -79,7 +79,7 @@ private async Task<bool> Hug()
7979 {
8080 try
8181 {
82- var image = await WeebCDN ( "hugs " ) ;
82+ var image = await WeebCDN ( "hug " ) ;
8383 HugImage . Load ( image ) ;
8484
8585 return true ;
You can’t perform that action at this time.
0 commit comments