You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a download fails or is paused, its progress icon won't appear the next time it is downloaded. But cancelling the progress entry will properly display the icon on next download. The problem is that episode.download_task is only set when a DownloadTask is created, but resuming a download reuses a recycled DownloadTask, and doesn't store it in the episode.
diff --git a/src/gpodder/download.py b/src/gpodder/download.py
index 1b7b54fa..5288912b 100644
--- a/src/gpodder/download.py
+++ b/src/gpodder/download.py
@@ -739,6 +739,10 @@ class DownloadTask(object):
self.status = DownloadTask.DOWNLOADING
self._notification_shown = False
+ # Store a reference to this task in the episode
+ if not self.episode.downloading:
+ self.episode.download_task = self
+
try:
# Resolve URL and start downloading the episode
fmt_ids = youtube.get_fmt_ids(self._config.youtube)
The text was updated successfully, but these errors were encountered:
If a download fails or is paused, its progress icon won't appear the next time it is downloaded. But cancelling the progress entry will properly display the icon on next download. The problem is that episode.download_task is only set when a DownloadTask is created, but resuming a download reuses a recycled DownloadTask, and doesn't store it in the episode.
The text was updated successfully, but these errors were encountered: