1.0-dev7 (Video adding panel added)

This commit is contained in:
2022-02-26 14:32:34 +01:00
Unverified
parent 96a7953500
commit f571a42995
95 changed files with 1436 additions and 227 deletions

View File

@@ -100,9 +100,15 @@ namespace VDownload.Core.Services.Sources.Twitch
return (true, login, expirationDate);
}
catch (WebException)
catch (WebException wex)
{
return (false, null, null);
if (wex.Response != null)
{
JObject wexInfo = JObject.Parse(new StreamReader(wex.Response.GetResponseStream()).ReadToEnd());
if ((int)wexInfo["status"] == 401) return (false, null, null);
else throw;
}
else throw;
}
}