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

Adjust error message for stuck/slow videos [if elapsed_time >= timeout, e.g. due to unavailable fragments &/or xklb media_check] #223

Merged
merged 13 commits into from
Aug 17, 2024
2 changes: 1 addition & 1 deletion cps/tasks/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def run(self, worker_thread):
else:
elapsed_time = (datetime.now() - last_progress_time).total_seconds()
if elapsed_time >= fragment_stuck_timeout:
self.message += f"<br>Some fragments are taking longer than expected to download. Please wait..."
self.message = f"Unable to download {self.media_url_link} due to unavailable fragments. Please see <a href='https://github.com/yt-dlp/yt-dlp/issues/2137' target='_blank'>this ticket</a> for context. Try to download the video again later."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.message = f"Unable to download {self.media_url_link} due to unavailable fragments. Please see <a href='https://github.com/yt-dlp/yt-dlp/issues/2137' target='_blank'>this ticket</a> for context. Try to download the video again later."
self.message = f"Unable to download {self.media_url_link} due to unavailable fragments. See <a href='https://github.com/yt-dlp/yt-dlp/issues/2137' target='_blank'>yt-dlp/yt-dlp#2137</a> for context. Try to download the video again later (e.g. if [EXPLANATION])."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user cannot do anything to work around this for now. I removed the suggestion to retry.


sleep(0.1)

Expand Down