Open armendh opened 3 years ago
Thank you! Worked for me!
Additionally fix extract images from the new response:
In file: XCDYouTubeVideo.m
After line:
NSArray<NSDictionary *> *thumbnails = XCDThumnailArrayWithString(playerResponse);
Add this code:
if((thumbnails==nil || thumbnails.count<1) && info[@"videoDetails"] ) { NSDictionary *videoDetails = info[@"videoDetails"]; if(videoDetails && videoDetails[@"thumbnail"]) { NSDictionary *thumbnail = videoDetails[@"thumbnail"]; if(thumbnail && thumbnail[@"thumbnails"]) { thumbnails = thumbnail[@"thumbnails"]; } } }
Thank you! Worked for me! Additionally fix extract images from the new response: In file: XCDYouTubeVideo.m After line:
NSArray<NSDictionary *> *thumbnails = XCDThumnailArrayWithString(playerResponse);
Add this code:if((thumbnails==nil || thumbnails.count<1) && info[@"videoDetails"] ) { NSDictionary *videoDetails = info[@"videoDetails"]; if(videoDetails && videoDetails[@"thumbnail"]) { NSDictionary *thumbnail = videoDetails[@"thumbnail"]; if(thumbnail && thumbnail[@"thumbnails"]) { thumbnails = thumbnail[@"thumbnails"]; } } }
Can you give an example of how you work with videos? It's just that I still get an error and I can't do anything about it :(
I pointed my Podfile to your repo pod 'XCDYouTubeKit', git: 'git@github.com:armendh/XCDYouTubeKit.git', branch: 'master'
and videos work 🙇♂️
However, my logs are spammed with the warning on XCDYouTubeVideo.m L:96. Do you know what this is from or how I fix it?
It's not working on my side, anyone found a working solution?
Has anyone been able to do this? It returns "status": "PERMISSION_DENIED"
.
the innertube api key is hardcoded and we don't know how long it will last so it is recommended to scrap the api key from youtube and set it via XCDYouTubeClient.setInnertubeApiKey