1
0

Indetation formatting and unnecessary usings cleanup

This commit is contained in:
Michael Gordeev
2020-05-10 13:47:42 +03:00
parent f968c95ab1
commit 1d636120cc
20 changed files with 684 additions and 702 deletions
-6
View File
@@ -7,12 +7,6 @@ namespace YouTube.API.Test
{
public class DashManifestTest
{
[SetUp]
public void Setup()
{
}
[Test]
public void ValidManifestTest()
{
+1 -4
View File
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using NUnit.Framework;
using YouTube.Models;
namespace YouTube.API.Test
+1 -4
View File
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
using Google.Apis.YouTube.v3.Data;
using Newtonsoft.Json;
@@ -19,7 +16,7 @@ namespace YouTube.API.Test
[SetUp]
public void Setup()
{
var task = AuthorizationHelpers.ExchangeToken(new ClientSecrets
var task = AuthorizationHelpers.ExchangeToken(new Google.Apis.Auth.OAuth2.ClientSecrets
{
ClientId = "CLIENT_ID",
ClientSecret = "CLIENT_SECRET"
+2 -4
View File
@@ -1,6 +1,4 @@
using System.Drawing;
namespace YouTube.Models
namespace YouTube.Models
{
public enum VideoFormat
{
@@ -33,7 +31,7 @@ namespace YouTube.Models
public string Quality { get; set; }
public VideoFormat Format { get; set; }
public string Url { get; set; }
public Size Resolution { get; set; }
public System.Drawing.Size Resolution { get; set; }
public bool HasAudio { get; set; }
public int Bitrate { get; set; }
}
@@ -33,7 +33,7 @@ namespace YouTube.Resources
item.Id = Id;
item.PlaybackUrls.ValidUntil = streamSet.ValidUntil.DateTime;
if(!string.IsNullOrWhiteSpace(streamSet.HlsLiveStreamUrl))
if (!string.IsNullOrWhiteSpace(streamSet.HlsLiveStreamUrl))
{
item.PlaybackUrls.LiveStreamUrl = streamSet.HlsLiveStreamUrl;
return item;
+1 -5
View File
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YouTube
namespace YouTube
{
public static class VideoQuality
{
+1 -1
View File
@@ -26,7 +26,7 @@
<PackageReference Include="Google.Apis.Auth" Version="1.45.0" />
<PackageReference Include="Google.Apis.Core" Version="1.45.0" />
<PackageReference Include="Google.Apis.Oauth2.v2" Version="1.45.0.1869" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.45.0.1918" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.45.0.1929" />
<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.16" />