diff --git a/Readme.md b/Readme.md index 5ff40a8..0fa8aef 100644 --- a/Readme.md +++ b/Readme.md @@ -14,7 +14,7 @@ -->
Current Version - 2021.06.20
+Current Version - 2021.06.30
A self-hosted podcast manager to download episodes as soon as they become live diff --git a/client/settings.html b/client/settings.html index f5c838d..5aa3e0d 100644 --- a/client/settings.html +++ b/client/settings.html @@ -124,7 +124,7 @@
Current Version | -2021.06.20 | +2021.06.30 |
Website | diff --git a/main.go b/main.go index af627b6..e107104 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "html/template" "log" "os" + "path" "strconv" "time" @@ -142,8 +143,11 @@ func main() { } dataPath := os.Getenv("DATA") + backupPath := path.Join(os.Getenv("CONFIG"), "backups") + router.Static("/webassets", "./webassets") router.Static("/assets", dataPath) + router.Static(backupPath, backupPath) router.POST("/podcasts", controllers.AddPodcast) router.GET("/podcasts", controllers.GetAllPodcasts) router.GET("/podcasts/:id", controllers.GetPodcastById) diff --git a/service/podcastService.go b/service/podcastService.go index eda2f26..f92870e 100644 --- a/service/podcastService.go +++ b/service/podcastService.go @@ -295,10 +295,14 @@ func AddPodcastItems(podcast *db.Podcast, newPodcast bool) error { var downloadStatus db.DownloadStatus if setting.AutoDownload { - if i < limit { + if !newPodcast { downloadStatus = db.NotDownloaded } else { - downloadStatus = db.Deleted + if i < limit { + downloadStatus = db.NotDownloaded + } else { + downloadStatus = db.Deleted + } } } else { downloadStatus = db.Deleted