mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 23:21:00 +08:00
26 lines
517 B
Go
26 lines
517 B
Go
package engine
|
|
|
|
import "polaris/log"
|
|
|
|
func (c *Engine) housekeeping() error {
|
|
log.Infof("start housekeeping tasks...")
|
|
|
|
if err := c.checkDbScraps(); err != nil {
|
|
return err
|
|
}
|
|
if err := c.checkImageFilesInterity(); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func (c *Engine) checkDbScraps() error {
|
|
//TODO: remove episodes that are not associated with any series
|
|
return nil
|
|
}
|
|
|
|
func (c *Engine) checkImageFilesInterity() error {
|
|
//TODO: download missing image files, remove unused image files
|
|
return nil
|
|
} |