Skip to content

Read error from xklb-metadata.db [leveraging yt-dlp STDERR]#175

Merged
holta merged 3 commits intoiiab:masterfrom
deldesir:deldesir-patch-38
Jun 10, 2024
Merged

Read error from xklb-metadata.db [leveraging yt-dlp STDERR]#175
holta merged 3 commits intoiiab:masterfrom
deldesir:deldesir-patch-38

Conversation

@deldesir
Copy link
Collaborator

@deldesir deldesir commented Jun 8, 2024

Instead of reporting the exception as a status message, this PR reads the error from xklb db. This enhances debugging. Exception will still be logged because they're useful to understand errors from calibre-web's context. Reading the error from the database helps understand errors from xklb's context leveraging yt-dlp STDERR.

[ Building on:

@deldesir deldesir added bug Something isn't working enhancement New feature or request labels Jun 8, 2024
@deldesir deldesir requested a review from holta June 8, 2024 18:50
@deldesir deldesir self-assigned this Jun 8, 2024
This prevents metada fetching hanging on retry. Metadata fetching identifies requested videos by reading xklb-metadata for videos which path and webpath are identical and error column is null.
@deldesir
Copy link
Collaborator Author

deldesir commented Jun 8, 2024

Before applying this PR:
image

After applying this PR:
image

@deldesir
Copy link
Collaborator Author

deldesir commented Jun 8, 2024

Retrying to download the failed video still hangs the metadata fetching task despite applying a timestamp. I'll put this PR into draft mode while I figure out what's going on.

@deldesir deldesir marked this pull request as draft June 8, 2024 19:27
@deldesir deldesir marked this pull request as ready for review June 10, 2024 10:45
@deldesir
Copy link
Collaborator Author

deldesir commented Jun 10, 2024

This PR is ready for merge. It will help in better understanding the underlying causes of failures. Another one will address the hanging at metadata fetch when a retry of a failed video is attempted.

@holta holta changed the title Read error from xklb-metadata.db Read error from xklb-metadata.db [leveraging yt-dlp STDERR] Jun 10, 2024
@holta holta closed this Jun 10, 2024
@holta holta reopened this Jun 10, 2024
@holta holta merged commit f28a0b7 into iiab:master Jun 10, 2024
@holta
Copy link
Member

holta commented Jun 10, 2024

Another one will address the hanging at metadata fetch when a retry of a failed video is attempted.

@deldesir Clarify when you can? Thank you!

@holta
Copy link
Member

holta commented Jun 11, 2024

Another one will address the hanging at metadata fetch when a retry of a failed video is attempted.

@deldesir Clarify when you can? Thank you!

@deldesir are you saying this relates to some or all of the 3 tickets below... ?

@deldesir
Copy link
Collaborator Author

Yes, but it was affecting single videos. They were mostly unavailable videos, but any video which failed in a previous attempt would fit into this category as well.

@holta
Copy link
Member

holta commented Jun 11, 2024

Can #150 and/or #153 be closed soon?

(Or are these not fully solved yet?)

@deldesir deldesir deleted the deldesir-patch-38 branch July 1, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants