mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
JSON payload I was given was not correct!
This commit is contained in:
@@ -45,7 +45,7 @@ public static class Zipline
|
|||||||
string url;
|
string url;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
url = json.GetProperty("files")[0].GetString() ??
|
url = json.GetProperty("files")[0].GetProperty("url").GetString() ??
|
||||||
throw new InvalidOperationException("Caught null when grabbing Zipline result");
|
throw new InvalidOperationException("Caught null when grabbing Zipline result");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user