mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 11:39:46 +08:00
chore: updates
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||

|

|
||||||
|
|
||||||
|
|
||||||
**Polaris 是一个电视剧和电影的追踪下载软件。对动漫日剧美剧都有良好的匹配,支持webdav或者本地存储。**
|
**Polaris 是一个电视剧和电影的追踪下载软件。对美剧动漫日剧都有良好的匹配,支持多种存储方式(webdav、alist、本地存储)。**
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"polaris/db"
|
"polaris/db"
|
||||||
"polaris/ent"
|
"polaris/ent"
|
||||||
@@ -20,6 +21,10 @@ import (
|
|||||||
func (c *Client) addSysCron() {
|
func (c *Client) addSysCron() {
|
||||||
c.registerCronJob("check_running_tasks", "@every 1m", c.checkTasks)
|
c.registerCronJob("check_running_tasks", "@every 1m", c.checkTasks)
|
||||||
c.registerCronJob("check_available_medias_to_download", "0 0 * * * *", func() error {
|
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.downloadAllTvSeries()
|
||||||
c.downloadAllMovies()
|
c.downloadAllMovies()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user