-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot connect to the database or query failed unexpectedly #113
Comments
I do see that the bug report lists youtube-dl but I've been using yt-dlp instead as its far more advanced and less buggy. Does't ytcc now use yt-dlp? |
Ytcc uses yt-dlp over youtube-dl, if both are found on your system. The error is probably related to something else. It seems there is a problem in how ytcc or yt-dlp calculate unique identifiers for some videos. Somehow it calculates the same id for two different URLs. I cannot reproduce the issue though. To reproduce, I'd need a list of subscriptions that trigger the error. Did you add new subscriptions recently (especially something not from youtube) that cause the issue? |
hum, not that I know of. I did remove the very last sub I performed and re-ran it but it produced the same issue. I then removed the last sub before the error and that didn't help. I ended exporting my existing subscriptions, moving the DB out of the way, and resubscribing to all via my exported list. I wasn't able to find out what specifically was the issue so I ended up using a heavy hand and moving the DB out of the way and I still ended up having the same error happen. I have attached a text file of the subscriptions where this is happening. Please let me know if there is anything I can do to assist with tracking down what might be the issue here. |
I can reproduce the issue with an empty DB and adding only one subscription:
Note that the issue still occurs even when using the channel id ( Issue does not occur with eg. this channel: https://www.youtube.com/channel/UCSqUTKab5R1I4B5frDEjXzA The only notable difference I can see with a quick glance is that the channel causing the bug has the "Live" tab while the second one has not. |
I've dig a bit in the code and seems to be indeed linked to a difference in what is returned by yt-dlp for the 2 channels: Channel that works as expectedThe Channel that causes the issueThe |
Some Youtube channels will have tags (Videos, Lives, Streams, Shorts, etc), and updating such a channel was broken as the object returned by YoutubeDL.extract_info will contains a "sub playlist". Fix the issue by checking if we have sub playlists and finding the one that is used for videos. Note: this means we don't support any types other than Videos for now. Fixes woefe#113
Youtube channel can enable additional features (eg. Shorts) which results in the channel having corresponding tabs. Updating such a channel was broken as the object returned by YoutubeDL.extract_info will contains a "sub playlist". Fix the issue by checking if we have sub playlists and finding the one that is used for videos. Note: this means we don't support any types other than Videos for now. Fixes woefe#113
There is an easy fix: update the subscription to use the playlist/link to the "videos" tab. Unfortunately, for some users that means having to update multiple subscriptions and there is currently no way of being notified that this even needs to be done. I've tried to do a small workaround in #118 so it's possible to support channels that were already added to ytcc and that enabled the new features at some points, making them use "tabs". Let me know what you think! |
ytcc version 2.6.1 is failing its update process with an error message "Cannot connect to the database or query failed unexpectedly"
Running ytcc with a log level of debug...
bug report info...
The text was updated successfully, but these errors were encountered: