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