Skip to content

Commit 1df2938

Browse files
committed
Applied fix 0xced#526
1 parent ab54e76 commit 1df2938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XCDYouTubeKit/XCDYouTubeVideoOperation.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ - (void) startNextRequest
149149
NSString *eventLabel = [self.eventLabels objectAtIndex:0];
150150
[self.eventLabels removeObjectAtIndex:0];
151151

152-
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1", @"eurl": [@"https://youtube.googleapis.com/v/" stringByAppendingString:self.videoIdentifier],@"c": @"TVHTML5", @"cver": @"6.20180913"};
152+
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1", @"c": @"IOS", @"cver": @"16.05.7"};
153153
NSString *queryString = XCDQueryStringWithDictionary(query);
154154
NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?" stringByAppendingString:queryString]];
155155
[self startRequestWithURL:videoInfoURL type:XCDYouTubeRequestTypeGetVideoInfo];
@@ -358,7 +358,7 @@ - (void) handleJavaScriptPlayerWithScript:(NSString *)script
358358
{
359359
NSString *eurl = [@"https://youtube.googleapis.com/v/" stringByAppendingString:self.videoIdentifier];
360360
NSString *sts = self.embedWebpage.sts ?: self.webpage.sts ?: @"";
361-
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @1 };
361+
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @"1", @"c": @"IOS", @"cver": @"16.05.7"};
362362
NSString *queryString = XCDQueryStringWithDictionary(query);
363363
NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?" stringByAppendingString:queryString]];
364364
[self startRequestWithURL:videoInfoURL type:XCDYouTubeRequestTypeGetVideoInfo];

0 commit comments

Comments
 (0)