Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Nov 20, 2024
1 parent 8df7b86 commit ee14cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/simon-ding/polaris)


**Polaris 是一个电视剧和电影的追踪下载软件。对动漫日剧美剧都有良好的匹配,支持webdav或者本地存储**
**Polaris 是一个电视剧和电影的追踪下载软件。对美剧动漫日剧都有良好的匹配,支持多种存储方式(webdav、alist、本地存储)**

</div>

Expand Down
5 changes: 5 additions & 0 deletions server/core/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"fmt"
"os"
"path/filepath"
"polaris/db"
"polaris/ent"
Expand All @@ -20,6 +21,10 @@ import (
func (c *Client) addSysCron() {
c.registerCronJob("check_running_tasks", "@every 1m", c.checkTasks)
c.registerCronJob("check_available_medias_to_download", "0 0 * * * *", func() error {
v := os.Getenv("NO_AUTO_DOWNLOAD")
if v == "true" {
return nil
}
c.downloadAllTvSeries()
c.downloadAllMovies()
return nil
Expand Down

0 comments on commit ee14cc6

Please sign in to comment.