fead: cli args: -podcast-download default to false
This commit turns off the podcast download ability. Because the podcast download routine will execute a DB query every 5 sec. To temporary fix the db pressure I add this command-line flag to turn it off. I will be looking for a way to reduce DB pressure and manually trigger eposide downloads later on.
This commit is contained in:
@@ -58,6 +58,7 @@ func main() {
|
||||
|
||||
confPodcastPurgeAgeDays := flag.Uint("podcast-purge-age", 0, "age (in days) to purge podcast episodes if not accessed (optional)")
|
||||
confPodcastPath := flag.String("podcast-path", "", "path to podcasts")
|
||||
confPodcastDownload := flag.Bool("podcast-download", false, "whether to download podcasts (optional, default false)")
|
||||
|
||||
confCachePath := flag.String("cache-path", "", "path to cache")
|
||||
|
||||
@@ -379,6 +380,10 @@ func main() {
|
||||
})
|
||||
|
||||
errgrp.Go(func() error {
|
||||
if !*confPodcastDownload {
|
||||
return nil
|
||||
}
|
||||
|
||||
defer logJob("podcast download")()
|
||||
|
||||
ctxTick(ctx, 5*time.Second, func() {
|
||||
|
||||
Reference in New Issue
Block a user