diff --git a/YouTubeScraper/.vs/YouTube.API/DesignTimeBuild/.dtbcache b/YouTubeScraper/.vs/YouTube.API/DesignTimeBuild/.dtbcache deleted file mode 100644 index 8b3fd24..0000000 Binary files a/YouTubeScraper/.vs/YouTube.API/DesignTimeBuild/.dtbcache and /dev/null differ diff --git a/YouTubeScraper/YouTubeScraper/Authorization/AuthorizationHelpers.cs b/YouTubeScraper/YouTubeScraper/Authorization/AuthorizationHelpers.cs index 267726b..07513ba 100644 --- a/YouTubeScraper/YouTubeScraper/Authorization/AuthorizationHelpers.cs +++ b/YouTubeScraper/YouTubeScraper/Authorization/AuthorizationHelpers.cs @@ -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(); } diff --git a/YouTubeScraper/YouTubeScraper/Generators/ManifestGenerator.cs b/YouTubeScraper/YouTubeScraper/Generators/ManifestGenerator.cs index 27cd179..11b830f 100644 --- a/YouTubeScraper/YouTubeScraper/Generators/ManifestGenerator.cs +++ b/YouTubeScraper/YouTubeScraper/Generators/ManifestGenerator.cs @@ -153,7 +153,7 @@ namespace YouTube.Generators public Dictionary SplitQuery(string query) { Dictionary dic = new Dictionary(StringComparer.OrdinalIgnoreCase); - string[] paramsEncoded = query.TrimStart('?').Split("&"); + string[] paramsEncoded = query.TrimStart('?').Split('&'); foreach (string paramEncoded in paramsEncoded) { string param = WebUtility.UrlDecode(paramEncoded); diff --git a/YouTubeScraper/YouTubeScraper/YouTube.API.csproj b/YouTubeScraper/YouTubeScraper/YouTube.API.csproj index af27b01..c012227 100644 --- a/YouTubeScraper/YouTubeScraper/YouTube.API.csproj +++ b/YouTubeScraper/YouTubeScraper/YouTube.API.csproj @@ -1,27 +1,27 @@  - netstandard2.1 + net46;netstandard2.0 YouTube.API YouTube + Michael "XFox" Gordeev + Copyright ©2019 Michael "XFox" Gordeev + latest - - - - - - - - - - + + + + + + +