mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-13 17:30:27 -07:00
Fix lint issues
This commit is contained in:
parent
3576a9b3bc
commit
3c46d76895
1 changed files with 2 additions and 13 deletions
|
|
@ -64,9 +64,9 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
||||||
const ADDRESS = inputs.autoscan_address;
|
const ADDRESS = inputs.autoscan_address;
|
||||||
const PORT = inputs.autoscan_port;
|
const PORT = inputs.autoscan_port;
|
||||||
|
|
||||||
|
let auth;
|
||||||
if (inputs.autoscan_username) {
|
if (inputs.autoscan_username) {
|
||||||
// eslint-disable-next-line no-unused-vars
|
auth = `Basic ${Buffer.from(`${inputs.autoscan_username}:${inputs.autoscan_password}`).toString('base64')}`;
|
||||||
const auth = `Basic ${Buffer.from(`${inputs.autoscan_username}:${inputs.autoscan_password}`).toString('base64')}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let filepath = '';
|
let filepath = '';
|
||||||
|
|
@ -89,7 +89,6 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
||||||
request.post({
|
request.post({
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
Authorization: auth,
|
Authorization: auth,
|
||||||
},
|
},
|
||||||
url: `${ADDRESS}:${PORT}/triggers/manual?dir=${filepath}`,
|
url: `${ADDRESS}:${PORT}/triggers/manual?dir=${filepath}`,
|
||||||
|
|
@ -100,16 +99,6 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
// console.log(`statusCode: ${res.statusCode}`);
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
// console.log(body);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
// console.log('request next');
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
// console.log(request.post);
|
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue