Merge pull request #506 from HaveAGitGat/add_notify

Use ctimeMs
make-only-subtitle-default
HaveAGitGat 2 years ago committed by GitHub
commit 9be9a36511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save