Skip to content

Commit

Permalink
auto-write new revision date for old files
Browse files Browse the repository at this point in the history
  • Loading branch information
autodidaddict committed Feb 26, 2024
1 parent 69d903e commit 0f56da9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/medialibrary/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func Load(name string) (*MediaLibrary, error) {
}
if library.LastModified == 0 {
library.LastModified = time.Now().UTC().Unix()
_ = library.Save()
}
return &library, nil
}
Expand Down

0 comments on commit 0f56da9

Please sign in to comment.