Closed ryanfrancesconi closed 3 years ago
duplicate of: https://github.com/0xced/XCDYouTubeKit/issues/525
The merged PR doesn't show up in the SPM release yet.
Hi I want to know when will this issue be resolved thanks
Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix. Replac line number 152,361 with new one that i have listedout at bottom.
File : XCDYouTubeVideoOperation
line: 152 line: 361
Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};
Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};
Thank @hArshpb11 this fixed for me.....
Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix. Replac line number 152,361 with new one that i have listedout at bottom.
File : XCDYouTubeVideoOperation
line: 152 line: 361
Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @1 };
Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @1 };
It's worked for me. Thank bro!
When we can expect this fix in new pod version
@0xced
Need to make little modification in "XCDYouTubeVideoOperation.m" For make this Fix cause the api we are using in isn't working for me(may be Api is depricated or something else i don't know)
File : XCDYouTubeVideoOperation.m
Modification for line 151: NSDictionary *query = @{ @"id": self.videoIdentifier};
Modification for line 153: NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.googleapis.com/youtube/v3/videos?part=id%2C+snippet&key={YOUR_API_KEY_HERE}" stringByAppendingString:queryString]];
you can get your api key from google console "YouTube Data API v3"
Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix. Replac line number 152,361 with new one that i have listedout at bottom.
File : XCDYouTubeVideoOperation
line: 152 line: 361
Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};
Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};
here is a few minor things that make it working again.
hArshpb11
Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix. Replac line number 152,361 with new one that i have listedout at bottom. File : XCDYouTubeVideoOperation line: 152 line: 361 Modification for line 152: NSDictionary query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913}; Modification for line 361: NSDictionary query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};
here is a few minor things that make it working again.
Hi, hArshpb11 did you test the live videos? For "LIVE NOW" videos, it does play ?
Livestreams worked for me using the above fix
can we chat in Skype or Telegram now? my skype : live:.cid.e5675d33daad7e3f telegram : @fullstackwe Thank you in advance
Livestreams worked for me using the above fix
Awaiting your reply
Livestreams worked for me using the above fix
live videoIDs : hartiIFC1s4, azl07ua79pa can you test these videos works in your side using XDCYouTubeVideoKit?
It happens again today Jul 22, 2021.
kinda happens monthly, what's going on here ? :(
my guess is that google is tired of non google access by downloaders such as this framework.
Fortunately, this error solved already
my guess is that google is tired of non google access by downloaders such as this framework.
@devbest555 where exactly?
Can anyone show me where to find final solution if any?
Yes, stop using this lib, it's doomed anyway. Use the youtube-ios-player-helper instead.
Has google changed their API?
sample video I'm trying:
I see -3 has this note: Returned when an empty response is returned. This may indicate that YouTube has blocked requests from your IP address because of overuse.
Would be curious if others are seeing this as I don't use this enough to be blocked.
Thanks, Ryan