-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
500 error on some channels #2
Comments
Thanks for the feedback! The issue is, that a user can have multiple channels, so that is not a unique identifier. On youtube you don't subscribe to a user, only to a channel. That's the thinking behind using the same functionality in Tube Archivist. So for example /c/BlakeWeber is the user name, and UCLAhOL4OBkw42OkcNbqOgYQ the channel ID. |
Yea makes sense. Just adds more steps. If i pass that url to yt-dl it geabs videos though |
Thank you for TA! I'm only getting 500 errors, regardless of what I use (tried channel ID and video URL for quite a few channels). |
Looks like
It looks like this is because YT shows a consent form before actually displaying the channel page, which is why scraping does not work. I'm based in Germany, so it might be an EU thing? |
@nifoc did you put django debug as env var in the docker? |
Yes. That enabled the Django page that is usually shown when an exception is thrown during development. I also looked a bit more into the consent page I mentioned. It is indeed something that YouTube/Google redirects you to when you visit for the first time (with certain cookies missing). Best I can tell you need an EU IP, otherwise they will not do the redirect. |
Hmm, looks like that's a limitation I wasn't aware. Currently yt-dlp doesn't extract some key information from the channel page like:
That's why I wrote my own scraper for that. Can you check what kind of cookie the consent screen will set? Maybe I can pass that to the scarper to avoid all that. And then I'll have to look into a way on how to gracefully handle errors there. |
I am having the same issue with 500 error when trying to add Isaac Arthur's Science and Futurism channel. |
ok, regarding the cookie consent issue, German VPN to the rescue. I think I found the workaround for that: If that solves it, I'll merge it and publish! |
OK, as far as I can tell from afar, latest version v.0.0.1 (yes, we are doing versioning now) should solve the cookie consent issue. |
ran into the same issue. i've used |
I'm still running the downloads and tests on the first channel, but I believe I can confirm it is working now. I was able to subscribe to the channel and I added it to the download queue, and everything seems to be downloading, and showing up in the GUI properly. Might be worth mentioning that I run this on AlmaLinux 8 with podman and podman-compose, as a user. |
I can confirm that (The |
Man you are right, I could have swore i pushed both tags... Thanks for pointing it out! |
https://www.youtube.com/c/BlakeWeber
https://www.youtube.com/user/DrunkenWoodworker
cant add channel. there are a few others. All use the /c/channelname
try to add it and 500 error. if i add a video from the channel it adds it fine
The text was updated successfully, but these errors were encountered: