diff --git a/bin/index.mjs b/bin/index.mjs index 3bc7ecf..6bb2622 100755 --- a/bin/index.mjs +++ b/bin/index.mjs @@ -10,7 +10,6 @@ import { tagErroredTorrents } from '../build/src/racing/tag.js' import { postRaceResumeV2 } from '../build/src/racing/completed.js' import { startMetricsServer } from '../build/src/server/appFactory.js'; import { addTorrentToRace } from '../build/src/racing/add.js'; -import data from '../package.json' assert { type: 'json' }; // This should take care of having a base config makeConfigIfNotExist(); @@ -70,8 +69,4 @@ program.command('metrics').description('Start a prometheus metrics server').acti startMetricsServer(config, api); }) -program.option('-v, --version', 'Display the version').action(() => { - console.log(`\n\nqbit-race version ${data.version}\n\n`); -}) - program.parse(); diff --git a/build/src/qbittorrent/api.js b/build/src/qbittorrent/api.js index 82699d1..3056b57 100644 --- a/build/src/qbittorrent/api.js +++ b/build/src/qbittorrent/api.js @@ -126,9 +126,6 @@ var ApiEndpoints; ApiEndpoints["transferInfo"] = "/api/v2/transfer/info"; })(ApiEndpoints || (ApiEndpoints = {})); export const login = (qbittorrentSettings) => { - const form = new FormData(); - form.append('username', qbittorrentSettings.username); - form.append('password', qbittorrentSettings.password); return axios.post(`${qbittorrentSettings.url}${ApiEndpoints.login}`, { username: qbittorrentSettings.username, password: qbittorrentSettings.password diff --git a/package.json b/package.json index 23a2422..3b36f48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "qbit-race", - "version": "2.0.0-alpha.6", + "version": "2.0.0-alpha.8", "description": "Qbit utilities for racing", "main": "./bin/index.js", "type": "module",