1
0

Updated YoutubeExplode to v5

This commit is contained in:
Michael Gordeev
2020-05-10 15:11:42 +03:00
parent 1d636120cc
commit cc6940bab7
7 changed files with 32 additions and 65 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ namespace YouTube.Resources
public async Task<ClosedCaptionTrack> ExecuteAsync()
{
YoutubeClient client = new YoutubeClient(Service.HttpClient);
var response = await client.GetClosedCaptionTrackAsync(CaptionInfo.TrackInfo);
var response = await client.Videos.ClosedCaptions.GetAsync(CaptionInfo.TrackInfo);
List<ClosedCaptionTrack.ClosedCaption> captions = new List<ClosedCaptionTrack.ClosedCaption>();
foreach (var i in response.Captions)
captions.Add(new ClosedCaptionTrack.ClosedCaption