1
0

Updated project dependencies

This commit is contained in:
Michael Gordeev
2019-12-04 23:46:20 +03:00
parent f7a0587a4e
commit b4ebd6f67e
4 changed files with 13 additions and 17 deletions
@@ -1,14 +1,10 @@
using Google.Apis.Auth.OAuth2;
using Google.Apis.Auth.OAuth2.Flows;
using Google.Apis.Auth.OAuth2.Responses;
using Google.Apis.Oauth2.v2;
using Google.Apis.YouTube.v3;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace YouTube.Authorization
@@ -22,7 +18,7 @@ namespace YouTube.Authorization
public static Uri FormQueryString(ClientSecrets clientSecrets, Uri redirectUri, params string[] scopes)
{
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();
}
@@ -153,7 +153,7 @@ namespace YouTube.Generators
public Dictionary<string, string> SplitQuery(string query)
{
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)
{
string param = WebUtility.UrlDecode(paramEncoded);
@@ -1,27 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
<AssemblyName>YouTube.API</AssemblyName>
<RootNamespace>YouTube</RootNamespace>
<Company>Michael "XFox" Gordeev</Company>
<Copyright>Copyright ©2019 Michael "XFox" Gordeev</Copyright>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<None Remove="Assets\DashManifestTemplate.xml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Assets\DashManifestTemplate.xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AngleSharp" Version="0.13.0" />
<PackageReference Include="Google.Apis" Version="1.41.1" />
<PackageReference Include="Google.Apis.Auth" Version="1.41.1" />
<PackageReference Include="Google.Apis.Core" Version="1.41.1" />
<PackageReference Include="Google.Apis.Oauth2.v2" Version="1.41.1.1602" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.41.1.1699" />
<PackageReference Include="Microsoft.CSharp" Version="4.6.0" />
<PackageReference Include="Google.Apis" Version="1.42.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.42.0" />
<PackageReference Include="Google.Apis.Core" Version="1.42.0" />
<PackageReference Include="Google.Apis.Oauth2.v2" Version="1.42.0.1602" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.42.0.1758" />
<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" />
</ItemGroup>