Closed pghpete closed 2 years ago
Not sure if this helps, but here is the output from a subscribe...
ytcc subscribe "DIY Perks" https://www.youtube.com/channel/UCUQo7nzH1sXVpzL92VesANw
INFO: Performing update check on 10 playlist items
INFO: Checking playlist 'DIY Perks'...
WARNING: Publication date of video 'Renewable Energy Projects' is unknown
WARNING: Duration of video 'Renewable Energy Projects' is unknown
INFO: Processed video 'Renewable Energy Projects'
...
This problem is related to youtube-dl, which hasn't seen any updates in months and is starting to break on more and more websites. Ytcc supports yt-dlp since version 2.5.0. Install yt-dlp and ytcc will prefer it over youtube-dl.
yt-dlp has been on my system during all of this...
yt-dlp==2021.10.10
and it would effect a "ytcc list" and "ytcc ls" ? I thought I ought to at least see available videos to download that match my date/since criteria.
According to the ytcc bug-report
output you posted above yt-dlp is not available. The Python module of yt-dlp needs to be available, because ytcc hooks into internals of yt-dlp or youtube-dl. Installing yt-dlp from the binary bundle with sudo curl -L ... -o /usr/local/bin/yt-dlp
or similar will not work.
And ytcc list
is affected, because the publication date is unknown (as shown in the warnings you posted above). When listing videos ytcc uses a default date range of several hundred years, which leads to empty results if the publication date is null. The same is true if you provide your own date range
Ah! Makes sense. I think I see why yt-dlp wasn't available or at least wasn't seen by ytcc... I was attempting to use ytcc under a user account on this particular system when yt-dlp was installed I thought I used sudo python3 -m pip install yt-dlp
... but just running pip install yt-dlp
as the user in question then running a ytcc update
did the trick.
ytcc list
now returns data.
Thank you very much for your help with this and your time on the project in general. Please let me know if I can donate time or donate financially to this project or to yourself in general.
Regards!
This may totally be user error and if it is I apologize in advance. That being said, I seem to be having issues, on a fresh install via pip, getting "ytcc list" or "ytcc ls" to return anything at all.
My basic goal is to use this command every X days to download new videos from youtube. ytcc ls --since $(date -d "-3 day" +%Y-%m-%d) | ytcc download
Describe the bug No output from "ytcc list" or "ytcc ls" after fresh install, ytcc subscribe, ytcc update
To Reproduce Steps to reproduce the behavior:
Expected behavior Output from ytcc ls and/or ytcc list
Environment, configuration and version information
Debug log (optional)
The database appears to be populated and when I browse the 'Videos' table with sqlitebrowser it does show several hundred entries.
Any help would be greatly appreciated. I would also like to know if it is possible to donate/contribute to the project in some way. From a donation to documentation, I'd love to help.
Regards Pete