update docuementation + increase refresh frequency

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

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

@ -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 -->
## License

@ -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

@ -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)

Loading…
Cancel
Save