From a25d17955c2b225dd1312fab1b984cf29ebce9a5 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Mon, 18 Jan 2021 15:17:25 +0530 Subject: [PATCH] numbers wrong if autodownload paused --- service/podcastService.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/service/podcastService.go b/service/podcastService.go index 9f03a77..8407d89 100644 --- a/service/podcastService.go +++ b/service/podcastService.go @@ -178,8 +178,12 @@ func AddPodcastItems(podcast *db.Podcast) error { } var downloadStatus db.DownloadStatus - if i < limit { - downloadStatus = db.NotDownloaded + if setting.AutoDownload { + if i < limit { + downloadStatus = db.NotDownloaded + } else { + downloadStatus = db.Deleted + } } else { downloadStatus = db.Deleted }