Skip to content
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

Formerly live videos fail to download: "failed to download [download] ... does not pass filter (live_status=?not_live); skipping" #188

Open
holta opened this issue Jun 15, 2024 · 49 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@holta
Copy link
Member

holta commented Jun 15, 2024

@nzola experienced many such errors.

Videos that were once live appear to be erroneously blocked by IIAB Calibre-Web.

Example of a video that should be downloading, but fails to download:

IMG-20240615-WA0003~2

@nzola mentioned:

Downloaded these playlists [and] thumbnails without any problems:
https://www.youtube.com/channel/UCX9j__vYOJu00iqBrCzecVw
https://www.youtube.com/playlist?list=PL1mP_vkqPB7EsIqqfwcGsg2rQNzoVy0mk

But cannot download the following single videos:
https://www.youtube.com/watch?v=BK0XGf20l84
https://www.youtube.com/watch?v=VCM8tg_mGSw
https://www.youtube.com/watch?v=w8snrdaoTUs&t=2s
https://www.youtube.com/watch?v=5BO9nhtF0Cc
https://www.youtube.com/watch?v=rbEsoe8F-l4&t=7788s
https://www.youtube.com/watch?v=Drec4XAMJzI&t=6737s
https://www.youtube.com/watch?v=w8snrdaoTUs&t=7s

VM's iiab-diagnostics: https://dpaste.com/6H8F53GPQ

@deldesir: Any idea what's happening?

@holta holta added bug Something isn't working question Further information is requested labels Jun 15, 2024
@deldesir
Copy link
Collaborator

deldesir commented Jun 16, 2024

2024-06-15 14:11:34 - [Debug] [https://www.youtube.com/watch?v=5BO9nhtF0Cc]: Unrecoverable error matched. [download] Analyse du 15 juin 2024: Controverse autour de la nomination du nouveau directeur de cabinet de FM-bM-^@M-& does not pass filter (live_status=?not_live);skipping ..

The error suggests the video is still a live video. On YouTube, the video is advertised as a finished live stream.

I bet the live_status column in media table (xklb-metadata) says it's still a live.
For the moment, what I understand is the video need to pass the match filter per:

https://github.com/chapmanjacobd/library/blob/ffe4fc8cc97697356f3df01bd0e720d1e4176c91/xklb/createdb/tube_backend.py#L418

@holta
Copy link
Member Author

holta commented Jun 16, 2024

Progress!

@nzola please also take note if recently "live" YouTube videos download OR do not download — in case these's a clear pattern as to which succeed and which fail? 🙏

@nzola
Copy link

nzola commented Jun 16, 2024

Progress!

@nzola please also take note if recently "live" YouTube videos download OR do not download — in case these's a clear pattern as to which succeed and which fail? 🙏

@holta @deldesir I understand that these videos were live when I tried to download them??? I will try downloading them again tomorrow, Sunday and give the report.

@nzola
Copy link

nzola commented Jun 16, 2024

@deldesir I tried to download this playlist now: https://www.youtube.com/@TOPCONGOFM/playlists It failed.
image

Just remembered. I downloaded the same playlist yesterday, it failed
image

PUBLISHING TO URL... https://dpaste.com/H4SYGYT8U

@deldesir
Copy link
Collaborator

deldesir commented Jun 16, 2024

@nzola This is a playlist of playlists. I am trying to download it right now on my side (LRN2). Although only a subset of 100 videos will be attempted, the metadata fetch is going to take very long to gather metadata for all videos in every playlists found. I will report back on errors found. This may help me understanding the issues you have encountered.

@holta
Copy link
Member Author

holta commented Jun 16, 2024

ASIDE: Of course YouTube videos that are truly "live" (happening at that moment) are not possible to download — until after the live event is complete. 🎤🎙️

@deldesir
Copy link
Collaborator

Downloading https://www.youtube.com/@TOPCONGOFM/playlists failed due to an unavailable video (
https://www.youtube.com/watch?app=desktop&v=n_iRE9al044). This needs a closer look. Thanks @nzola for having reported on this.

@holta
Copy link
Member Author

holta commented Jun 16, 2024

NON-URGENT:

"Tasks" view needs to use more clear language than bureaucratic language like "unavailable video" eventually.

So regular teachers in all countries know what this really means 😇

Ideally with actionable suggestions (in those cases where that's realistic!)

@nzola
Copy link

nzola commented Jun 17, 2024

https://www.youtube.com/watch?v=Drec4XAMJzI&t=6737s

I tried again to download these 7 videos now , but still failed. I did not do any upgrade or new install.
PUBLISHING TO URL... https://dpaste.com/F6S6YX798

image

@holta
Copy link
Member Author

holta commented Jun 17, 2024

I tried again to download these 7 videos now , but still failed. I did not do any upgrade or new install.

Curiously the screenshot shows no error message / explanation at all, during this 2nd attempt.

(Definitely room for improvement, thanks @nzola.)

@deldesir
Copy link
Collaborator

The error message will be displayed now, but the videos will not download. Live videos (finished or not) are not downloadable with xklb by design.

@holta
Copy link
Member Author

holta commented Jun 21, 2024

Live videos (finished or not) are not downloadable with xklb by design.

By whose design?

FYI this design assumption seems extremely weak, given how videos labeled as "live" are actually used:

  • Many who generate and post "live" material to YouTube (e.g. podcasters and similar) then leave these videos/podcasts/episodes/transmissions in YouTube's "live" section eternally.
  • In short, as a very practical matter — the "live" label really means "this video was once live" in many/most cases.

@holta
Copy link
Member Author

holta commented Jun 21, 2024

The error message will be displayed now

@deldesir clarify which PR and code improved error reporting here?

Thanks, please if possible!

@deldesir
Copy link
Collaborator

The error message will be displayed now

@deldesir clarify which PR and code improved error reporting here?

Thanks, please if possible!

Per adjustments made in PR #194

@holta
Copy link
Member Author

holta commented Jun 21, 2024

@deldesir please try to find a legit way to tell if a YouTube video is actually live or not.

(Instead of the bogus information that we're currently using — that's as good as useless — given the fact that so many podcasters permanently leave all their episodes marked as "live" ...rather intentionally... as permanently labeling videos as "live" serves as de facto marketing it would appear!)

@holta
Copy link
Member Author

holta commented Jun 21, 2024

@deldesir please try to find a legit way to tell if a YouTube video is actually live or not.

If something like this can be upstreamed to become a part of xklb, even better!

@holta
Copy link
Member Author

holta commented Jun 22, 2024

@deldesir please test & use these URLs to make sure forward progress is steady in coming days — thank you to everyone working on this very common and very serious problem:

[ ADDITIONAL TEST CASES BELOW E.G. FOR "NOT YET LIVE" YOUTUBE URL'S! ]

@nzola
Copy link

nzola commented Jun 22, 2024

The error message will be displayed now, but the videos will not download. Live videos (finished or not) are not downloadable with xklb by design.

Ok. I understands. Thank you.

@holta
Copy link
Member Author

holta commented Jun 22, 2024

@nzola @avni

Until we solve this serious problem properly...

@deldesir believes that an initial hack/workaround should confirm the path forward, using yt-dlp options like...

Screenshot_20240622-162856

https://github.com/yt-dlp/yt-dlp/blob/master/README.md

@nzola
Copy link

nzola commented Jun 22, 2024

@nzola @avni

Until we solve this serious problem properly...

@deldesir believes that an initial hack/workaround should confirm the path forward, using yt-dlp options like...

Screenshot_20240622-162856

https://github.com/yt-dlp/yt-dlp/blob/master/README.md

Ok @holta

@nzola
Copy link

nzola commented Jun 22, 2024

@nzola experienced many such errors.

Videos that were once live appear to be erroneously blocked by IIAB Calibre-Web.

Example of a video that should be downloading, but fails to download:

IMG-20240615-WA0003~2

@nzola mentioned:

Downloaded these playlists [and] thumbnails without any problems:
https://www.youtube.com/channel/UCX9j__vYOJu00iqBrCzecVw
https://www.youtube.com/playlist?list=PL1mP_vkqPB7EsIqqfwcGsg2rQNzoVy0mk

But cannot download the following single videos:
https://www.youtube.com/watch?v=BK0XGf20l84
https://www.youtube.com/watch?v=VCM8tg_mGSw
https://www.youtube.com/watch?v=w8snrdaoTUs&t=2s
https://www.youtube.com/watch?v=5BO9nhtF0Cc
https://www.youtube.com/watch?v=rbEsoe8F-l4&t=7788s
https://www.youtube.com/watch?v=Drec4XAMJzI&t=6737s
https://www.youtube.com/watch?v=w8snrdaoTUs&t=7s

VM's iiab-diagnostics: https://dpaste.com/6H8F53GPQ

@deldesir: Any idea what's happening?

JFYI: I downloaded all these videos on CMD with yt-dlp.

@holta
Copy link
Member Author

holta commented Jun 22, 2024

@deldesir

  • @nzola suggests the challenge is not downloading "formerly live" YouTube videos...

  • But rather, the challenge appears to be (programmatically, reliably) identifying "formerly live" YouTube videos...

Can you confirm?

@avni
Copy link
Member

avni commented Jun 23, 2024

iiab-diagnostics: https://dpaste.com/7XBX3XZE2

I can replicate the error, and see, "failed to download [download] ... does not pass filter (live_status=?not_live); skipping" when downloading:

  1. https://www.youtube.com/watch?v=rbEsoe8F-l4
  2. https://www.youtube.com/live/rbEsoe8F-l4

@deldesir believes that an initial hack/workaround should confirm the path forward, using yt-dlp options like...

It's not clear to me what the workaround is or what I need to do to test? Is the ask to use the command line and testing the download with yt-dlp?

Image

@holta
Copy link
Member Author

holta commented Jun 23, 2024

@deldesir should outline a suggested path forward within 24h:

  • As mentioned above, downloading "formerly live" videos via yt-dlp seems to work fine, no options/flags required.

  • The real issue seems to be automatically distinguishing between "truly live" YouTube videos and "formerly live" YouTube videos.

  • And then presumably pushing that functionality upstream, e.g. into xklb?

@avni
Copy link
Member

avni commented Jun 24, 2024

As mentioned above, downloading "formerly live" videos via yt-dlp seems to work fine, no options/flags required.

Here's the output from my terminal as confirmation. I don't know how to view the webm files, but presuming they succeeded based on the output.

ubuntu@box: $ sudo yt-dlp https://www.youtube.com/watch?v=rbEsoe8F-l4
[youtube] Extracting URL: https://www.youtube.com/watch?v=rbEsoe8F-l4
[youtube] rbEsoe8F-l4: Downloading webpage
[youtube] rbEsoe8F-l4: Downloading ios player API JSON
[youtube] rbEsoe8F-l4: Downloading m3u8 information
[info] rbEsoe8F-l4: Downloading 1 format(s): 247+251
[download] Destination: LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f247.webm
[download] 100% of 541.37MiB in 00:01:31 at 5.90MiB/s
[download] Destination: LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f251.webm
[download] 100% of 126.31MiB in 00:00:47 at 2.67MiB/s
[Merger] Merging formats into "LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].webm"
Deleting original file LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f251.webm (pass -k to keep)
Deleting original file LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f247.webm (pass -k to keep)
ubuntu@box:~$ ls
'LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].webm'

ubuntu@box: $ sudo yt-dlp https://www.youtube.com/live/rbEsoe8F-l4
[youtube] Extracting URL: https://www.youtube.com/live/rbEsoe8F-l4
[youtube] rbEsoe8F-l4: Downloading webpage
[youtube] rbEsoe8F-l4: Downloading ios player API JSON
[youtube] rbEsoe8F-l4: Downloading m3u8 information
[info] rbEsoe8F-l4: Downloading 1 format(s): 247+251
[download] LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].webm has already been downloaded
ubuntu@box: $ rm 'LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].webm'
rm: remove write-protected regular file 'LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].webm'? yes
ubuntu@box:~$ sudo yt-dlp https://www.youtube.com/live/rbEsoe8F-l4
[youtube] Extracting URL: https://www.youtube.com/live/rbEsoe8F-l4
[youtube] rbEsoe8F-l4: Downloading webpage
[youtube] rbEsoe8F-l4: Downloading ios player API JSON
[youtube] rbEsoe8F-l4: Downloading m3u8 information
[info] rbEsoe8F-l4: Downloading 1 format(s): 247+251
[download] Destination: LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f247.webm
[download] 100% of 541.37MiB in 00:00:19 at 28.26MiB/s
[download] Destination: LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f251.webm
[download] 100% of 126.31MiB in 00:00:19 at 6.53MiB/s
[Merger] Merging formats into "LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].webm"
Deleting original file LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f247.webm (pass -k to keep)
Deleting original file LE DEBAT 24 MAI 2024 [rbEsoe8F-l4].f251.webm (pass -k to keep)

@holta
Copy link
Member Author

holta commented Jun 25, 2024

@deldesir let me reframe / re-ask my question from chapmanjacobd/library#41 (comment) more directly:

  • People who click on "Download to IIAB" need to know whether a YouTube video is "actually live" versus "formerly live" — otherwise they could (apparently, if I'm understanding) be stuck waiting many hours until the "actually live" video is finally downloaded in full.
  • So, how can we programmatically distinguish between "actually live" and "formerly live" YouTube videos, to help these people avoid getting stuck waiting for perhaps up-to-12 hours?

@holta
Copy link
Member Author

holta commented Jun 25, 2024

CAVEAT: I concede that some people who click on "Download to IIAB" don't mind extremely slow downloads of "actually live" videos.

  • One concrete example is radio show podcasts, that are almost always complete within about a single hour.
  • So the person clicking "Download to IIAB" to download that radio show or podcast, will often be very happy to wait an hour-or-so for IIAB Calibre-Web to slowly download that episode (that's still happening; it's literally a live radio show!)
  • Conversely, some others might not realize that they've asked "Download to IIAB" to download a painfully long 3+ hour "actually live" sports match, that's not yet completed. So back to my question: should we (and can we?) courteously notify users within "Tasks" view, that they've begun downloading an "actually live" YouTube video — that might possibly take hours-and-hours to finish downloading?

@holta
Copy link
Member Author

holta commented Jun 25, 2024

Additional testing will be needed to ensure performance is not overly affected by these generally huge recordings.

Yes that issue of overweight videos is very important. And very well known since 2023[*]. But please let's declare that separate question (of overly long duration, bandwidth-heavy, disk-heavy, and RAM/memory-heavy videos) to be off-topic for now — at least in this particular context here: 😉

[*] ASIDE: Hopefully to be solved in a few short months, or possibly much earlier!

@holta
Copy link
Member Author

holta commented Jun 26, 2024

ALSO: Pre-announced / Pre-scheduled / Upcoming videos ("not yet live" !) are a whole other category of YouTube URL's...

...that I didn't realize also matter!

(Presumably these too are commonly categorized as "live" videos, even though no video whatsoever exists yet!?)

▶️ Certainly we need some kind of intelligent user-facing warning or messaging — in "Tasks" view or similar — to warn teachers / parents when they're trying to "Download to IIAB" a video that doesn't yet exist! ⏳

▶️ Many examples of "not yet live" (UPCOMING) and "truly live" (LIVE) YouTube videos below — usable as test cases to ensure the "Download to IIAB" button operates cleanly for all:

https://youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig

chapmanjacobd added a commit to chapmanjacobd/library that referenced this issue Jun 26, 2024
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->
This pull request introduces a new --live flag to enable the download of
live videos. This flag adjusts the match filters to include live
streams, which were previously excluded by default.

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
The primary motivation for this change is to allow users to download
live videos directly, a feature that was not supported due to default
match filters excluding live content.
<!--- If it fixes an open issue, please link to the issue here. -->
Some context: iiab/calibre-web#188

## How has this been tested?
<!--- Please describe in detail how you tested your changes. -->
The changes were tested by:
- Implementing the --live flag and ensuring it correctly modifies the
match filters.
- Running the updated script to download live videos from various
sources to confirm the flag's effectiveness.
- Verifying that non-live videos are still downloadable without the
--live flag.
- Ensuring no regression in existing functionalities.
<!--- Include details of your testing environment, tests ran to see how
-->
Tested on Ubuntu 24.04
<!--- your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

![image](https://github.com/chapmanjacobd/library/assets/16546989/a813ba4f-ec78-4fb4-9b8e-79dc6281ae06)

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.
@holta
Copy link
Member Author

holta commented Jun 28, 2024

3 kinds of "ostensibly live" YouTube videos tested here, thanks to @deldesir:

With PR #199 now merged, a follow-up PR is now needed to clean up, as described here:

@holta holta unpinned this issue Jun 29, 2024
@nzola
Copy link

nzola commented Jun 30, 2024

@nzola experienced many such errors.

Videos that were once live appear to be erroneously blocked by IIAB Calibre-Web.

Example of a video that should be downloading, but fails to download:

IMG-20240615-WA0003~2

@nzola mentioned:

Downloaded these playlists [and] thumbnails without any problems:
https://www.youtube.com/channel/UCX9j__vYOJu00iqBrCzecVw
https://www.youtube.com/playlist?list=PL1mP_vkqPB7EsIqqfwcGsg2rQNzoVy0mk

But cannot download the following single videos:
https://www.youtube.com/watch?v=BK0XGf20l84
https://www.youtube.com/watch?v=VCM8tg_mGSw
https://www.youtube.com/watch?v=w8snrdaoTUs&t=2s
https://www.youtube.com/watch?v=5BO9nhtF0Cc
https://www.youtube.com/watch?v=rbEsoe8F-l4&t=7788s
https://www.youtube.com/watch?v=Drec4XAMJzI&t=6737s
https://www.youtube.com/watch?v=w8snrdaoTUs&t=7s

VM's iiab-diagnostics: https://dpaste.com/6H8F53GPQ

@deldesir: Any idea what's happening?

The playlist https://www.youtube.com/@TOPCONGOFM/playlists downloaded from 1 to 100% then it failed
PUBLISHING TO URL... https://dpaste.com/4HVB2SFVK

image

@holta
Copy link
Member Author

holta commented Jun 30, 2024

playlist https://www.youtube.com/@TOPCONGOFM/playlists downloaded from 1 to 100% then it failed

@nzola the above is not a playlist. It is a list of playlists. Can you try again with one of its individual playlists? For example, maybe start with their 8-video playlist https://youtube.com/playlist?list=PLi6Z1Wvj99SKPHMiqLkREMQrMyZy1YTPE ?

@deldesir can you please clean up the error message so that @nzola and others have a crystal clear error message — instead of, or alongside Metadata Fetch: [URL] failed: unsupported operand type(s) for /: 'NoneType' and 'int' ? (We can open this message in a new ticket if that makes things easier!)

Conversely: If a list of playlists can easily in future be downloaded into a single bookshelf, much like we do with a YouTube channel (a YouTube channel is basically also a list of playlists!) then we might consider that functionality, if it's genuinely needed?

@holta
Copy link
Member Author

holta commented Jun 30, 2024

@nzola and AFTER you've completed testing of individual playlist(s):

Try the much more ambitious experiment of downloading the entire channel — e.g. try the "Download to IIAB" button with URLs like:

@nzola
Copy link

nzola commented Jul 1, 2024

Downloaded this playlist:https://www.youtube.com/playlist?list=PLi6Z1Wvj99SLJRvpu2S6CPRHvECynHS0y
(99 videos) with pi400 Calibre-Web. Successfully completed after 8 hours.
PUBLISHING TO URL... https://dpaste.com/3LGEYAQLE
image

This error happened during the download, but the process continued until all 99 videos were completed download.

image
image

@nzola
Copy link

nzola commented Jul 1, 2024

@deldesir @holta pi4 Calibre-Web also downloaded this playlist: https://www.youtube.com/playlist?list=PLi6Z1Wvj99SKvAGNRiDmjhgQEZ8pU-4Y2 very smoothly without any problems
PUBLISHING TO URL... https://dpaste.com/H37ZJTM7R

@nzola
Copy link

nzola commented Jul 1, 2024

@nzola and AFTER you've completed testing of individual playlist(s):

Try the much more ambitious experiment of downloading the entire channel — e.g. try the "Download to IIAB" button with URLs like:

@deldesir @holta I tried downloading the 2 above video links on both pi4 and multipass Calibre-Web, but they are still stuck on STARTED.
pi4 Calibre-Web results: PUBLISHING TO URL... https://dpaste.com/H37ZJTM7R

image

multipass Calibre-Web results: PUBLISHING TO URL... https://dpaste.com/GFTD2QH9D

image

@holta
Copy link
Member Author

holta commented Jul 1, 2024

Downloaded this playlist:https://www.youtube.com/playlist?list=PLi6Z1Wvj99SLJRvpu2S6CPRHvECynHS0y (99 videos) with pi400 Calibre-Web. Successfully completed after 8 hours. PUBLISHING TO URL... https://dpaste.com/3LGEYAQLE
[SCREENSHOT OF SUCCESSES]
This error happened during the download, but the process continued until all 99 videos were completed download.
[SCREENSHOTS OF FAILURE]

  • @nzola great news that 99 out of 100 (of 230 total) downloaded!
  • Can you test "Download to IIAB" of the single failed video https://youtu.be/Zm-ROp6EMZo all on its own? (To see if that failure is repeatable or not!)

@holta
Copy link
Member Author

holta commented Jul 1, 2024

@deldesir were channel downloads like this working in the past?

@deldesir @holta I tried downloading the 2 above video links on both pi4 and multipass Calibre-Web, but they are still stuck on STARTED. pi4 Calibre-Web results: PUBLISHING TO URL... https://dpaste.com/H37ZJTM7R
[SCREENSHOT OF "Metadata Fetch" THAT GETS STUCK "Waiting" ON RPI 4]

multipass Calibre-Web results: PUBLISHING TO URL... https://dpaste.com/GFTD2QH9D
[SCREENSHOT OF "Metadata Fetch" THAT GETS STUCK "Waiting" ON 24.04 VM]

@holta
Copy link
Member Author

holta commented Jul 1, 2024

@deldesir were channel downloads like this working in the past?

@EMG70 wonders if part of the reason is...

Download stuck on "Waiting "I thought this has been normal behaviour when one tries to download another video before the first one has started or finished gathering meta data.

The long wait happens mostly on channels or extremely long playlists such that any attempt to download a second url will give the "waiting" status

(@deldesir can you help clarify?!)

@deldesir
Copy link
Collaborator

deldesir commented Jul 1, 2024

This error happened during the download, but the process continued until all 99 videos were completed download.

Very ugly. Likely a network error.

@deldesir
Copy link
Collaborator

deldesir commented Jul 1, 2024

@deldesir were channel downloads like this working in the past?

We did tests with channels in the past but not big as https://youtube.com/@TOPCONGOFM. This channel has 4.1k videos. Even though only 100 videos will be downloaded, the first task will take a long time processing metadata for all those 4.1k videos and sorting them out based on their views per year.

@deldesir
Copy link
Collaborator

deldesir commented Jul 1, 2024

The long wait is justified as I could see all playlists being indexed running tail -f /var/log/xklb.log. Test done in lrn2. I had to reboot the machine. I guess I'll have to move the database aside too because a lot of residual videos will be caught in subsquent downloads.

@holta
Copy link
Member Author

holta commented Jul 1, 2024

@EMG70 further explains #188 (comment)

Just to be sure we are not investigating normal behaviour I initiated a 3hr video download, before it completed gathering meta I started a 16min video download. This resulted in second video going to waiting mode and only started after first video was completed as what's happening on @nzola's channel downloads.

image

image

@deldesir
Copy link
Collaborator

deldesir commented Jul 1, 2024

@EMG70 explained it well. Tasks are run sequentially. This is the normal behavior.

I was investigating the channel having a "started" message with a progress stuck at 0%.

@nzola
Copy link

nzola commented Jul 1, 2024

I tried to download this video link: https://youtu.be/Zm-ROp6EMZo as requested by @holta on multipass iiab, pi4 iiab and pi400 iiab.
Here are the results:

multipass iiab: PUBLISHING TO URL... https://dpaste.com/3R8RXUUZ2
image

pi4: PUBLISHING TO URL... https://dpaste.com/2VXWWLBZB
image

pi400: PUBLISHING TO URL... https://dpaste.com/8Z4TA84FH
image

@holta
Copy link
Member Author

holta commented Jul 1, 2024

Thanks @nzola! Let's ask @deldesir to try to fix the situation in coming days if he can!

  • The video https://youtu.be/Zm-ROp6EMZo is of course almost 2h long. 🎞️

  • Error on Line 1085 of /var/log/calibre-web.log is:
    [2024-07-01 10:02:18,264] ERROR {cps.tasks.download:128} An error occurred during the subprocess execution: 'NoneType' object is not subscriptable

  • Errors on Lines 1387-1391 of /var/log/xklb.log are:
    2024-07-01 10:02:18 - [Debug] [https://www.youtube.com/watch?v=Zm-ROp6EMZo]: yt-dlp ERROR: ^M[download] Got error: 0 bytes read, 10050479 more expected. Giving up after 12 retries

    2024-07-01 10:02:18 - [Debug] [https://www.youtube.com/watch?v=Zm-ROp6EMZo]: yt-dlp returned no info

    2024-07-01 10:02:18 - [Debug] [https://www.youtube.com/watch?v=Zm-ROp6EMZo]: Recoverable error matched (will try again later). [download] Got error: 0 bytes read;10050479 more expected. Giving up after 12 retries;10416754 more expected. Retrying (5/12)...;10323314 more expected. Retrying (6/12)...;9968224 more expected. Retrying (7/12)...;10059139 more expected. Retrying (8/12)...;10278231 more expected. Retrying (9/12)...;9969513 more expected. Retrying (10/12)...;9985561 more expected. Retrying (11/12)...;10459979 more expected. Retrying (12/12)...

    2024-07-01 10:02:18 - [Debug] Extra media data {'playlist_path': 'https://www.youtube.com/playlist?list=PLi6Z1Wvj99SLJRvpu2S6CPRHvECynHS0y', 'time_modified': 0, 'time_downloaded': 0, 'time_deleted': 0, 'extractor_config': '{"force": true}'}

    2024-07-01 10:02:18 - [Info] lb-wrapper's xklb command (dl) completed successfully.

Tangentially related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants