Skip to content

Commit

Permalink
Failed to decode response error Solution - 0xced#531
Browse files Browse the repository at this point in the history
  • Loading branch information
sixty8 committed Jun 2, 2021
1 parent 66ec54d commit 4fb6c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion XCDYouTubeKit/XCDYouTubeVideoOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ - (void) handleJavaScriptPlayerWithScript:(NSString *)script
{
NSString *eurl = [@"https://youtube.googleapis.com/v/" stringByAppendingString:self.videoIdentifier];
NSString *sts = self.embedWebpage.sts ?: self.webpage.sts ?: @"";
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts};
//NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts};
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @1 };
NSString *queryString = XCDQueryStringWithDictionary(query);
NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?" stringByAppendingString:queryString]];
[self startRequestWithURL:videoInfoURL type:XCDYouTubeRequestTypeGetVideoInfo];
Expand Down

0 comments on commit 4fb6c97

Please sign in to comment.