-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated repo with all fixes so far, including slow download #552
base: master
Are you sure you want to change the base?
Conversation
@kbex-dev I have just tried your repo, and everything works well, except i can't get the thumbnail in the iOS demo. it says unsupported URL, please help. |
Hi @zhengyanWork, I'm using a different API to get video_info but didn't change the mapping provided by YoutubeKit. It's possible the thumbnail url was moved to another field and a change is needed on the Video model in this repo? I'm sorry to say that this isn't a priority for my use case, I won't have time to look into it. |
@kbex-dev Thanks for this!
|
Hey @kunalsood, thanks for sharing. I've added your code to the fork, though I haven't confirmed the fix. Hopefully it helps others needing those thumbnails. |
No worries @kbex-dev. One question (since I haven't get been able to go through all the issues open about this, on this repo here): Where is the |
The default key is scraped from their website. I think you could create your own API key from a YT account, but I never bothered since we're not exactly following their terms of service :| In my own codebase I occasionally scrape the YT website to see if the key was updated, but I think it's still the same. Another gotcha is that their API expects a consent/gdpr cookie (at least when in Europe). This can also be mocked. I'll add my own (Swift 5) implementation for both issues below as a reference:
|
Awesome! Thanks. |
The slow download issue seems to be popping up more and more for our users. yt-dlp seems to handle it fine, but I'm having a hard time finding out what they do to fix it. If anyone is feeling up for it, I'd happily accept PRs on my fork :) |
I'm having trouble with Iphone 8 without sound, anyone has seen this behavior? |
Hi @kbex-dev, Thanks for the work you've done. Instead of deleting my original comments, I thought I'd just pass on what I'd done. Brilliant work! Thanks, |
Hi Steve I'm glad you got it to work! As a word of warning, these fixes aren't a complete solution. It worked for a while, but I've since received new reports about slow/stalled videos. I haven't been able to fix those issues on this repo without a complete refactor to mimick youtubedl :/ |
Well, it's much better than having them not working for the moment. :) Apparently it hasn't been working since last year... so I'll take the gamble and push an upload to the Apple App store. I'll keep you posted if I notice anything weird though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR contains all the fixes I had applied locally (from other comments on the repo) + a fix for the slow downloads