Process timestamps properly

This commit is contained in:
Ben Sarmiento
2023-11-23 00:22:10 +01:00
parent 215cdcc209
commit dbd5422841
3 changed files with 22 additions and 14 deletions

View File

@@ -329,7 +329,8 @@ func (t *TorrentManager) startRefreshJob() {
t.repairAll()
t.log.Info("Finished checking for torrents to repair")
}
go OnLibraryUpdateHook(t.cfg)
// TODO: pass the changed directories to the hook
go OnLibraryUpdateHook([]string{}, t.cfg, t.log)
}
}
@@ -404,7 +405,7 @@ func hashStringToFh(s string) (fh uint64) {
func (t *TorrentManager) getName(name, originalName string) string {
// drop the extension from the name
if t.cfg.EnableRetainFolderNameExtension() && strings.Contains(name, originalName) {
if t.cfg.EnableRetainFolderNameExtension() {
return name
} else {
ret := strings.TrimSuffix(originalName, ".mp4")