-
Notifications
You must be signed in to change notification settings - Fork 5
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
An attempt to download [a YouTube channel] resulted in an accumulation (long list) of "unavailable videos" in Tasks, from all current and previously attempted failed downloads [why is the very same video individually downloadable?] #238
Comments
Here is why: calibre-web/scripts/lb-wrapper Line 82 in 486b7bb
This line of code from lb-wrapper ensures, with the use of --force , to update already existed metadata for a given path as explained in https://github.com/chapmanjacobd/library/blob/main/xklb/usage.py#L570-L572
|
@deldesir which below are most relevant? (In helping us explain — and decide what to do next!) |
@EMG70 just FYI @deldesir is looking into this, but it might not be easy! Something equivalent to xklb tubeadd's (Sorting out how xklb helps us with download errors & metadata-extract.py for entire playlists — not just single videos — likely needs work!) |
Thank you |
@EMG70: Were you aware that you are trying to download an entire YouTube Channel here — rather than a standard playlist? @deldesir is investigating if this might possibly be exacerbating the problem.
Tangentially, @deldesir is being affected by IP addresses (cloud VPS IP addresses especially?) being banned / blocked by YouTube, as mentioned below... |
Yes I was aware of her 220 agricultural videos under her channel ,unfortunately she doesn't group them by Playlist.I have downloaded same videos successfully before my calibre-web got corrupted after upgrading to 24.04 in last two weeks . |
@deldesir suspects the large number of videos (220 in this case) might be causing this problem? Regardless whether or not contained in a standard playlist. |
Yes, the number of videos might trigger a restriction. 220 videos were processed to get their metadata extracted so 100 of them could be downloaded. Tests with single videos downloaded in another VM in another location went through without a problem. |
Thank you ,I think that explains it .This said calibre-web /server was built circa March 2024, probably before the 100 video limit was implemented ,so explains why i initially managed. I guess things changed when i ran sudo iiab-update-f. |
@EMG70 can you please retest, on a completely clean/fresh VM? @deldesir too should investigate & test wherever he can help shed light, as I just tried "Download to IIAB" with https://www.youtube.com/@agribusinesswithwadzanaima275 and the 220 videos are downloading perfectly so far... (100% success with the first 10 videos anyway!) |
Will do |
Thanks! FYI @EMG70 33 videos (of 220) downloaded successfully over about 30min, so I cut it off by running PS I could have run |
Tested with a new VM ,100 videos successfully downloaded from the channel https://www.youtube.com/@agribusinesswithwadzanaima275. |
@deldesir should (speculate!) as to the true root cause: What really changed since a week ago, to cause this to start working again? |
@EMG70 when exactly did you try downloading "up to 300 videos" instead of "up to 100 videos" ? (Thanks for clarifying, just in case this happens to be related!) |
@EMG70 is the timeline/summary below accurate, to help us all understand?
|
@deldesir please help us understand what could have caused most of 100 videos to fail to download (
|
@deldesir please help @EMG70 & all of us deepen our intuition as to what might-or-might-not have been happening to cause this last week! @EMG70 asks:
|
Since reproducibility of the issue is not possible anymore and the log doesn't contain an error relevant to the failures, I am afraid we'll have to rely on untested assumptions. What I know is at the time of the bug, yt-dlp 2024.08.06 and xklb 2.9.026 were in use. |
Ok! xklb 2.9.026 could easily be tested to check if that might be the cause? As outlined in https://github.com/iiab/calibre-web/wiki#xklb-and-yt-dlp-backend-integration — everyone should do this regularly to keep assumptions grounded in reality:
|
Much safer method below! (as wiki doc explains)
|
Yes this is off-topic 😄 But of course feel free to try! And if YouTube eventually blocks your IP address (e.g. #243 or similar), or you run into any other problems, definitely let us know! RECAP: @EMG70 modified Lines 51 to 52 in 486b7bb
|
Describe the bug/problem
An attempt to download playlists results in an accumulation of long list in Tasks " unavailable videos" from all current and previously attempts.
A clear and concise description of what the bug is. If you are asking for support, please check our Wiki if your question is already answered there.
Unavailable videos for any reason are expected to show as those that have failed for the playlist not cumulative list from previous downloads.
To Reproduce
Download
Steps to reproduce the behavior:
Logfile
SUDO IIAB-DIAGNOSTICS - https://paste.centos.org/view/10fc9a97
calibre-web.log
Add content of calibre-web.log file or the relevant error, try to reproduce your problem with "debug" log-level to get more output.
Expected behavior
Unavailable videos for any reason are expected to show as those that have failed for the playlist not cumulative list from previous downloads.
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here. [e.g. access via reverse proxy, database background sync, special database location]
This is a members only video https://www.youtube.com/watch?v=MfRdmsbs3R8 but also gets added to list of unavailable accumulative list.
This video https://www.youtube.com/watch?v=EiMFnDquvdM fails to download as part of playlist https://www.youtube.com/@agribusinesswithwadzanaima275 but successfully downloaded as an individual url.(last line of screenshot)
The results are however not consistent ,some individual public urls are still failing. eg https://www.youtube.com/watch?v=AT4khVKBBkg which plays well in youtube.
The text was updated successfully, but these errors were encountered: