Comments (7)
means the video got stuck due to unavailable fragments
Dozens of "Some fragments are taking longer than expected to download" messages need to be explained better in "Tasks" view for everyday users:
- What does this really mean?
This is an unrecoverable error happened mysteriously with some videos. During the download some fragments just gone missing and the download is stuck. Nothing to see with Calibre-Web, xklb and yt-dlp. The expected fragments just don't leave YouTube servers.
- Being told dozens of times to "please wait" is not believable — is this truly the best that can be done?
Fixed in #223
- Conversely, worst case if there's absolutely nothing that can be done in this case and such cases, the root cause yt-dlp issue(s) need to be mentioned!
There is nothing we can do actually. This is an external issue yt-dlp cannot do anything about
I have done my best to get rid of the warning editbooks.py: SAWarning: Object of type <Books> not in session, add operation along 'Authors.books' won't proceed
. There is still work to do to ship a successful PR.
from calibre-web.
Is it possible the video's long length/duration (1:56:49) might be part of the problem?
from calibre-web.
https://dpaste.com/4D4SEN6F6 Ubuntu 24.04 here:
Lines 1110 and 1111 pasted in below — this issue appears to be the same as:
[2024-07-05 23:59:45,842] ERROR {cps.tasks.download:132} An error occurred during the subprocess execution: 'NoneType' object is not subscriptable
[2024-07-05 23:59:45,843] ERROR {cps.services.worker:202} no such column: error
Traceback (most recent call last):
File "/usr/local/calibre-web-py3/cps/tasks/download.py", line 93, in run
requested_file = conn.execute("SELECT path FROM media WHERE webpath = ? AND path NOT LIKE 'http%'", (self.media_url,)).fetchone()[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/calibre-web-py3/cps/services/worker.py", line 199, in start
self.run(*args)
File "/usr/local/calibre-web-py3/cps/tasks/download.py", line 133, in run
self.message = f"{self.media_url_link} failed to download: {self.read_error_from_database()}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/calibre-web-py3/cps/tasks/download.py", line 149, in read_error_from_database
error = conn.execute("SELECT error FROM media WHERE webpath = ?", (self.media_url,)).fetchone()[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: no such column: error
from calibre-web.
@deldesir do you understand this bug @nzola reported about a week ago?
from calibre-web.
Yes, that means the video got stuck due to unavailable fragments.
from calibre-web.
means the video got stuck due to unavailable fragments
Dozens of "Some fragments are taking longer than expected to download" messages need to be explained better in "Tasks" view for everyday users:
- What does this really mean?
- Being told dozens of times to "please wait" is not believable — is this truly the best that can be done?
- Conversely, worst case if there's absolutely nothing that can be done in this case and such cases, the root cause yt-dlp issue(s) need to be mentioned!
- Finally, what can be done about #186 ?
from calibre-web.
There is nothing we can do actually. This is an external issue yt-dlp cannot do anything about
-
Ok. So please now provide a link in "Tasks" view to a yt-dlp (or similar!) ticket explaining the context. Thanks.
-
Explain here why the error message is being repeated, so everyone can understand the root cause, and what it means.
Whereas suppressing error messages is almost always neither useful nor healthy.
-
Where is the work below? Thanks!
I have done my best to get rid of the warning
editbooks.py: SAWarning: Object of type <Books> not in session, add operation along 'Authors.books' won't proceed
. There is still work to do to ship a successful PR.
from calibre-web.
Related Issues (20)
- Clarify actions on Book Details overlay HOT 4
- @EMG70's YouTube playlist downloading problems 2024-06-10: (1) (This is taking longer than expected) (2) Metadata Fetch: [YouTube video URL] failed: 'NoneType' object cannot be interpreted as an integer [@avni results: (3) failed to download: None (4) it keeps trying to redownload failed videos] HOT 20
- The "Download to IIAB" overlay has the prior URL populated in the text when downloading additional videos HOT 2
- (1) download.py: "sqlite3.OperationalError: no such column: error" after "TypeError: 'NoneType' object is not subscriptable" (2) editbooks.py: SAWarning: Object of type <Books> not in session, add operation along 'Authors.books' won't proceed HOT 10
- metadata_extract.py ... Unavailable Video ... SyntaxError: f-string: unterminated string [and "502 Bad Gateway" on RPi 4 & RPi 400] HOT 9
- Formerly live videos fail to download: "failed to download [download] ... does not pass filter (live_status=?not_live); skipping" HOT 49
- Why ~100 minute ETA to complete "Metadata Fetch" stage (seems very slow) for a playlist of 35 short videos? [Metadata Fetch: ... failed: unsupported operand type(s) for /: 'NoneType' and 'int'] [hundreds of videos stuck in xklb-metadata.db, painstakingly processed every time, but never downloading?] HOT 10
- Overall "Download to IIAB" workflow
- Search videos by subtitles/captions/transcripts [AND video title AND video description AND video author AND video publisher?] HOT 2
- "Upcoming live" and "Actually live" videos are caught in subsequent downloads [need to clearly explain errors, e.g. in "Tasks" view] HOT 5
- Uploading videos via Calibre-Web fails - 500 Internal Server Error [if filename contains square brackets] HOT 17
- Should "Delete this Shelf" allow you to auto-delete all its "books" too? HOT 1
- Shouldn't "Metadata Fetch" show Progress 100% ? HOT 3
- Preserve "Tasks" view history of uploads/downloads/errors across reboots? (and "systemctl restart calibre-web") HOT 2
- ValueError: not enough values to unpack (expected 4, got 3) [Regression in file uploading mechanism, "500 INTERNAL ERROR"] HOT 1
- Uploading of a video whose title contains an exclamation mark results in no cover/thumbnail — "Failed to Move Cover file" — "[Errno 2] No such file of directory" HOT 8
- failed to download: 500 INTERNAL SERVER ERROR after ~15-20 seconds on a couple of videos — "name 'move' is not defined" — "Failed to send the requested file to http://box/books/meta"
- All videos failed to download: "'NoneType' object is not subscriptable" — "Some formats may be missing" HOT 3
- Previously stuck video returns nothing at all
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calibre-web.