chore: update

This commit is contained in:
Simon Ding
2024-08-12 22:57:21 +08:00
parent b5f0b28c61
commit 4800e6c79d
2 changed files with 6 additions and 1 deletions

View File

@@ -83,6 +83,11 @@ func (c *Client) writePlexmatch(historyId int) error {
return errors.Wrap(err, "query season episode")
}
for _, ep := range allEpisodes {
if ep.TargetFile == "" {
log.Errorf("no episode file of episode %d, season %d", ep.EpisodeNumber, ep.SeasonNumber)
//TODO update db
continue
}
if strings.Contains(buff.String(), ep.TargetFile) {
log.Debugf("already write plex episode line: %v", ep.TargetFile)
continue

View File

@@ -55,7 +55,7 @@ func (c *Client) checkTasks() {
torrent.Remove()
delete(c.tasks, id)
} else {
log.Infof("torrent file still sedding: %v, current seed ratio: %v", torrent.Name(), torrent.SeedRatio())
log.Infof("torrent file still sedding: %v, current seed ratio: %v", torrent.Name(), *torrent.SeedRatio())
}
continue
}