mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
commit
9ed03a152e
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
log('Changing date...');
|
log('Changing date...');
|
||||||
touch.sync(file._id, { time: Date.parse(otherArguments.originalLibraryFile.statSync.mtime), force: true });
|
touch.sync(file._id, { mtimeMs: otherArguments.originalLibraryFile.statSync.mtimeMs, force: true });
|
||||||
log('Done.');
|
log('Done.');
|
||||||
responseData.infoLog += 'File timestamps updated or match original file\n';
|
responseData.infoLog += 'File timestamps updated or match original file\n';
|
||||||
return responseData;
|
return responseData;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue