diff --git a/cps/tasks/download.py b/cps/tasks/download.py index 16ef4deb2a..ea18905784 100644 --- a/cps/tasks/download.py +++ b/cps/tasks/download.py @@ -54,7 +54,7 @@ def run(self, worker_thread): complete_progress_cycle = 0 last_progress_time = datetime.now() - fragment_stuck_timeout = 120 # seconds + timeout = 120 # seconds self.message = f"Downloading {self.media_url_link}..." if self.live_status == "was_live": @@ -80,9 +80,8 @@ def run(self, worker_thread): last_progress_time = datetime.now() else: elapsed_time = (datetime.now() - last_progress_time).total_seconds() - if elapsed_time >= fragment_stuck_timeout: - self.message += f"
Some fragments are taking longer than expected to download. Please wait..." - + if elapsed_time >= timeout: + self.message = f"{self.media_url_link} is taking longer than expected. It could be a stuck download due to unavailable fragments (yt-dlp/yt-dlp#2137) and/or an error in xklb's media check. Please wait as we try again. See #223 for more info." sleep(0.1) p.wait()