mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
commit
9be9a36511
1 changed files with 2 additions and 2 deletions
|
|
@ -60,11 +60,11 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
try {
|
||||
log('Changing date...');
|
||||
|
||||
const { mtimeMs } = otherArguments.originalLibraryFile.statSync;
|
||||
const { mtimeMs, ctimeMs } = otherArguments.originalLibraryFile.statSync;
|
||||
if (os.platform() === 'win32') {
|
||||
fs.utimes(
|
||||
file._id,
|
||||
new Date().getTime() / 1000,
|
||||
ctimeMs / 1000,
|
||||
mtimeMs / 1000,
|
||||
(err) => {
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue