@@ -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