mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
Removed dead code
This commit is contained in:
parent
69da4c4457
commit
7961068a7a
1 changed files with 1 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const got = require('got');
|
||||
|
||||
// Used for future updates
|
||||
// const argv = require('../funi').argv;
|
||||
//
|
||||
// const lang = {
|
||||
|
|
@ -15,9 +16,6 @@ const got = require('got');
|
|||
|
||||
// do req
|
||||
const getData = async (options) => {
|
||||
// let regionHeaders = ((argv.region !== undefined) && false) ? {
|
||||
// 'Accept-Language': lang[argv.region].langCode,
|
||||
// } : {};
|
||||
let regionHeaders = {};
|
||||
|
||||
|
||||
|
|
@ -48,10 +46,6 @@ const getData = async (options) => {
|
|||
gOptions.headers['Accept-Encoding'] = 'gzip, deflate, br';
|
||||
gOptions.headers['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0';
|
||||
gOptions.body = `username=${encodeURIComponent(options.auth.user)}&password=${encodeURIComponent(options.auth.pass)}`;
|
||||
// if (argv.region !== undefined) {
|
||||
// gOptions.headers["Territory"] = lang[argv.region].regionCode
|
||||
// gOptions.headers["Accept-Language"] = `${lang[argv.region].langCode},en;q=0.5`
|
||||
// }
|
||||
}
|
||||
if(options.useToken && options.token){
|
||||
gOptions.headers.Authorization = `Token ${options.token}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue