Skip to content

Commit

Permalink
Merge pull request #3 from hinge-agency/fix/issue-534-XCDYouTubeVideo…
Browse files Browse the repository at this point in the history
…ErrorDomain-error-code-3

Fixes issue 0xced#534
  • Loading branch information
alexeichhorn committed Jun 18, 2021
2 parents f1b2dd8 + 38170db commit 575c327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCDYouTubeKit/XCDYouTubeVideoOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ - (void) startNextRequest
NSString *eventLabel = [self.eventLabels objectAtIndex:0];
[self.eventLabels removeObjectAtIndex:0];

NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @"1" };
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"};
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 575c327

Please sign in to comment.