Skip to content

Commit 4fb6c97

Browse files
authored
Failed to decode response error Solution - 0xced#531
0xced#531
1 parent 66ec54d commit 4fb6c97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

XCDYouTubeKit/XCDYouTubeVideoOperation.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ - (void) handleJavaScriptPlayerWithScript:(NSString *)script
397397
{
398398
NSString *eurl = [@"https://youtube.googleapis.com/v/" stringByAppendingString:self.videoIdentifier];
399399
NSString *sts = self.embedWebpage.sts ?: self.webpage.sts ?: @"";
400-
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts};
400+
//NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts};
401+
NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @1 };
401402
NSString *queryString = XCDQueryStringWithDictionary(query);
402403
NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.youtube.com/get_video_info?" stringByAppendingString:queryString]];
403404
[self startRequestWithURL:videoInfoURL type:XCDYouTubeRequestTypeGetVideoInfo];

0 commit comments

Comments
 (0)