iiab / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
3 stars 4 forks source link

Many "stuck" videos during "Download to IIAB" (is a YouTube advert embedded at the start of each video possibly causing this?) #168

Open holta opened 3 months ago

holta commented 3 months ago

@EMG70 reports: (Ubuntu 24.10)

There were a lot of failed videos from this playlist https://www.youtube.com/playlist?list=PLbC14Txh1KZdaX5DkYYX8BBF3j9Bowhce.

My observation on the failed videos is that they all start with an advert(Green chef) in particular for this playlist.Here is some of adverts that failed and most have that Green chef advert at the start,one has to click skip to play it,could this be causing an issue on Calib-web/yt-dlp download?https://www.youtube.com/watch?v=4tGSQb2stt8 https://www.youtube.com/watch?v=Nzq2Yd7mlsk https://www.youtube.com/watch?v=pUzVqOwnZaw https://www.youtube.com/watch?v=IRw_GimN32k https://www.youtube.com/watch?v=pUzVqOwnZaw https://www.youtube.com/watch?v=OsdzDGsIh-A

IMG-20240602-WA0004~3

Related:

holta commented 3 months ago

FWIW @EMG70 observed that most all "stuck" videos had this advert embedded at the start:

IMG-20240602-WA0005

holta commented 3 months ago

Tangentially related:

https://techcrunch.com/2024/06/03/instagram-confirms-test-of-unskippable-ads/

deldesir commented 3 months ago

Thanks @EMG70. Just saw your ticket. This observation is interesting.

deldesir commented 3 months ago

Some timeout during the download process might be causing this.

When I set timeout to 30s the videos downloaded successfully. To avoid false positives, 60s might be better. https://github.com/iiab/calibre-web/blob/a6fc74a84cc92cf9b016c7b1eac1c3114998c70f/cps/tasks/download.py#L54

deldesir commented 3 months ago

Screenshot_20240603-195446