Updated project dependencies
This commit is contained in:
Binary file not shown.
@@ -1,14 +1,10 @@
|
|||||||
using Google.Apis.Auth.OAuth2;
|
using Google.Apis.Auth.OAuth2;
|
||||||
using Google.Apis.Auth.OAuth2.Flows;
|
using Google.Apis.Auth.OAuth2.Flows;
|
||||||
using Google.Apis.Auth.OAuth2.Responses;
|
using Google.Apis.Auth.OAuth2.Responses;
|
||||||
using Google.Apis.Oauth2.v2;
|
|
||||||
using Google.Apis.YouTube.v3;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace YouTube.Authorization
|
namespace YouTube.Authorization
|
||||||
@@ -22,7 +18,7 @@ namespace YouTube.Authorization
|
|||||||
public static Uri FormQueryString(ClientSecrets clientSecrets, Uri redirectUri, params string[] scopes)
|
public static Uri FormQueryString(ClientSecrets clientSecrets, Uri redirectUri, params string[] scopes)
|
||||||
{
|
{
|
||||||
string clientId = Uri.EscapeDataString(clientSecrets.ClientId);
|
string clientId = Uri.EscapeDataString(clientSecrets.ClientId);
|
||||||
string scopeStr = string.Join(' ', scopes);
|
string scopeStr = string.Join(" ", scopes);
|
||||||
|
|
||||||
return $"https://accounts.google.com/o/oauth2/auth?client_id={clientId}&redirect_uri={redirectUri.AbsoluteUri}&response_type=code&scope={scopeStr}".ToUri();
|
return $"https://accounts.google.com/o/oauth2/auth?client_id={clientId}&redirect_uri={redirectUri.AbsoluteUri}&response_type=code&scope={scopeStr}".ToUri();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ namespace YouTube.Generators
|
|||||||
public Dictionary<string, string> SplitQuery(string query)
|
public Dictionary<string, string> SplitQuery(string query)
|
||||||
{
|
{
|
||||||
Dictionary<string, string> dic = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
Dictionary<string, string> dic = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||||
string[] paramsEncoded = query.TrimStart('?').Split("&");
|
string[] paramsEncoded = query.TrimStart('?').Split('&');
|
||||||
foreach (string paramEncoded in paramsEncoded)
|
foreach (string paramEncoded in paramsEncoded)
|
||||||
{
|
{
|
||||||
string param = WebUtility.UrlDecode(paramEncoded);
|
string param = WebUtility.UrlDecode(paramEncoded);
|
||||||
|
|||||||
@@ -1,27 +1,27 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
|
||||||
<AssemblyName>YouTube.API</AssemblyName>
|
<AssemblyName>YouTube.API</AssemblyName>
|
||||||
<RootNamespace>YouTube</RootNamespace>
|
<RootNamespace>YouTube</RootNamespace>
|
||||||
|
<Company>Michael "XFox" Gordeev</Company>
|
||||||
|
<Copyright>Copyright ©2019 Michael "XFox" Gordeev</Copyright>
|
||||||
|
<LangVersion>latest</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<None Remove="Assets\DashManifestTemplate.xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Assets\DashManifestTemplate.xml" />
|
<EmbeddedResource Include="Assets\DashManifestTemplate.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AngleSharp" Version="0.13.0" />
|
<PackageReference Include="AngleSharp" Version="0.13.0" />
|
||||||
<PackageReference Include="Google.Apis" Version="1.41.1" />
|
<PackageReference Include="Google.Apis" Version="1.42.0" />
|
||||||
<PackageReference Include="Google.Apis.Auth" Version="1.41.1" />
|
<PackageReference Include="Google.Apis.Auth" Version="1.42.0" />
|
||||||
<PackageReference Include="Google.Apis.Core" Version="1.41.1" />
|
<PackageReference Include="Google.Apis.Core" Version="1.42.0" />
|
||||||
<PackageReference Include="Google.Apis.Oauth2.v2" Version="1.41.1.1602" />
|
<PackageReference Include="Google.Apis.Oauth2.v2" Version="1.42.0.1602" />
|
||||||
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.41.1.1699" />
|
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.42.0.1758" />
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.6.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="all" />
|
||||||
<PackageReference Include="YoutubeExplode" Version="4.7.10" />
|
<PackageReference Include="YoutubeExplode" Version="4.7.10" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user