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
31
31
public const string BeatModsURL = "https://beatmods.com" ;
32
32
public const string BeatModsVersions = "https://versions.beatmods.com/versions.json" ;
33
33
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 /" ;
35
35
public const string BeatModsModsOptions = "mod?status=approved" ;
36
36
public const string MD5Spacer = " " ;
37
37
public static readonly char [ ] IllegalCharacters = new char [ ]
@@ -60,9 +60,7 @@ public class Result
60
60
61
61
public class WeebCDNRandomResponse
62
62
{
63
- public int index ;
64
63
public string url ;
65
- public string ext ;
66
64
}
67
65
68
66
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)
48
48
49
49
private async Task < string > WeebCDN ( string type )
50
50
{
51
- var resp = await HttpClient . GetAsync ( Utils . Constants . WeebCDNAPIURL + type + "/random" ) ;
51
+ var resp = await HttpClient . GetAsync ( Utils . Constants . WeebCDNAPIURL + type ) ;
52
52
var body = await resp . Content . ReadAsStringAsync ( ) ;
53
53
54
54
var response = JsonSerializer . Deserialize < Utils . WeebCDNRandomResponse > ( body ) ;
@@ -59,7 +59,7 @@ private async Task<bool> HeadPat()
59
59
{
60
60
try
61
61
{
62
- var image = await WeebCDN ( "pats " ) ;
62
+ var image = await WeebCDN ( "pat " ) ;
63
63
PatImage . Load ( image ) ;
64
64
65
65
return true ;
@@ -79,7 +79,7 @@ private async Task<bool> Hug()
79
79
{
80
80
try
81
81
{
82
- var image = await WeebCDN ( "hugs " ) ;
82
+ var image = await WeebCDN ( "hug " ) ;
83
83
HugImage . Load ( image ) ;
84
84
85
85
return true ;
You can’t perform that action at this time.
0 commit comments