From 0ef179c370f084807c0cd04138afb808c7152671 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Mon, 9 Nov 2020 06:36:48 +0530 Subject: [PATCH] update docuementation + increase refresh frequency --- .env | 2 +- Readme.md | 8 +++++++- docker-compose.yml | 2 +- main.go | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 105fba8..6e57f1d 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ CONFIG=. DATA=./assets -CHECK_FREQUENCY = 10 \ No newline at end of file +CHECK_FREQUENCY = 240 \ No newline at end of file diff --git a/Readme.md b/Readme.md index df571c5..04a2a6e 100644 --- a/Readme.md +++ b/Readme.md @@ -116,7 +116,7 @@ services: image: akhilrex/podgrab container_name: podgrab environment: - - CHECK_FREQUENCY=20 + - CHECK_FREQUENCY=240 volumes: - /path/to/config:/config - /path/to/data:/assets @@ -129,6 +129,12 @@ services: docker-compose up -d ``` +### Environment Variables + +| Name | Description | Default | +| --- | --- | --- | +| CHECK_FREQUENCY | How frequently to check for new episodes and missing files (in minutes) | 30 | + ## License diff --git a/docker-compose.yml b/docker-compose.yml index 4f665ca..c9a872f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: image: akhilrex/podgrab container_name: podgrab environment: - - CHECK_FREQUENCY=20 + - CHECK_FREQUENCY=240 volumes: - /path/to/config:/config - /path/to/data:/assets diff --git a/main.go b/main.go index e2b0516..cdfcd9d 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ func setupSettings() gin.HandlerFunc { func intiCron() { checkFrequency, err := strconv.Atoi(os.Getenv("CHECK_FREQUENCY")) if err != nil { - checkFrequency = 10 + checkFrequency = 30 log.Print(err) } //gocron.Every(uint64(checkFrequency)).Minutes().Do(service.DownloadMissingEpisodes)