update docuementation + increase refresh frequency

pull/24/head
Akhil Gupta 4 years ago
parent dfca61f6ac
commit 0ef179c370

@ -1,3 +1,3 @@
CONFIG=. CONFIG=.
DATA=./assets DATA=./assets
CHECK_FREQUENCY = 10 CHECK_FREQUENCY = 240

@ -116,7 +116,7 @@ services:
image: akhilrex/podgrab image: akhilrex/podgrab
container_name: podgrab container_name: podgrab
environment: environment:
- CHECK_FREQUENCY=20 - CHECK_FREQUENCY=240
volumes: volumes:
- /path/to/config:/config - /path/to/config:/config
- /path/to/data:/assets - /path/to/data:/assets
@ -129,6 +129,12 @@ services:
docker-compose up -d 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 --> <!-- LICENSE -->
## License ## License

@ -4,7 +4,7 @@ services:
image: akhilrex/podgrab image: akhilrex/podgrab
container_name: podgrab container_name: podgrab
environment: environment:
- CHECK_FREQUENCY=20 - CHECK_FREQUENCY=240
volumes: volumes:
- /path/to/config:/config - /path/to/config:/config
- /path/to/data:/assets - /path/to/data:/assets

@ -110,7 +110,7 @@ func setupSettings() gin.HandlerFunc {
func intiCron() { func intiCron() {
checkFrequency, err := strconv.Atoi(os.Getenv("CHECK_FREQUENCY")) checkFrequency, err := strconv.Atoi(os.Getenv("CHECK_FREQUENCY"))
if err != nil { if err != nil {
checkFrequency = 10 checkFrequency = 30
log.Print(err) log.Print(err)
} }
//gocron.Every(uint64(checkFrequency)).Minutes().Do(service.DownloadMissingEpisodes) //gocron.Every(uint64(checkFrequency)).Minutes().Do(service.DownloadMissingEpisodes)

Loading…
Cancel
Save