mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 07:50:29 -07:00
Merge pull request #684 from HaveAGitGat/classic
Re-order filepath change logging
This commit is contained in:
commit
71f468fab7
3 changed files with 4 additions and 4 deletions
4
.github/workflows/lint_and_test.yml
vendored
4
.github/workflows/lint_and_test.yml
vendored
|
|
@ -12,8 +12,8 @@ jobs:
|
||||||
os:
|
os:
|
||||||
[
|
[
|
||||||
["ubuntu-20.04"],
|
["ubuntu-20.04"],
|
||||||
["windows-2019"],
|
["windows-2022"],
|
||||||
["macos-11.0"],
|
["macos-14"],
|
||||||
]
|
]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,11 +153,11 @@ var runClassicPlugin = function (args, type) { return __awaiter(void 0, void 0,
|
||||||
case 16:
|
case 16:
|
||||||
result = _b.sent();
|
result = _b.sent();
|
||||||
if (((_a = result === null || result === void 0 ? void 0 : result.file) === null || _a === void 0 ? void 0 : _a._id) && args.inputFileObj._id !== result.file._id) {
|
if (((_a = result === null || result === void 0 ? void 0 : result.file) === null || _a === void 0 ? void 0 : _a._id) && args.inputFileObj._id !== result.file._id) {
|
||||||
|
args.jobLog("File ID changed from ".concat(args.inputFileObj._id, " to ").concat(result.file._id));
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
args.inputFileObj._id = result.file._id;
|
args.inputFileObj._id = result.file._id;
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
args.inputFileObj.file = result.file.file;
|
args.inputFileObj.file = result.file.file;
|
||||||
args.jobLog("File ID changed from ".concat(args.inputFileObj._id, " to ").concat(result.file._id));
|
|
||||||
}
|
}
|
||||||
return [2 /*return*/, {
|
return [2 /*return*/, {
|
||||||
result: result,
|
result: result,
|
||||||
|
|
|
||||||
|
|
@ -149,11 +149,11 @@ export const runClassicPlugin = async (args:IpluginInputArgs, type:'filter'|'tra
|
||||||
);
|
);
|
||||||
|
|
||||||
if (result?.file?._id && args.inputFileObj._id !== result.file._id) {
|
if (result?.file?._id && args.inputFileObj._id !== result.file._id) {
|
||||||
|
args.jobLog(`File ID changed from ${args.inputFileObj._id} to ${result.file._id}`);
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
args.inputFileObj._id = result.file._id;
|
args.inputFileObj._id = result.file._id;
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
args.inputFileObj.file = result.file.file;
|
args.inputFileObj.file = result.file.file;
|
||||||
args.jobLog(`File ID changed from ${args.inputFileObj._id} to ${result.file._id}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue