mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 16:31:55 +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');
|
const got = require('got');
|
||||||
|
|
||||||
|
// Used for future updates
|
||||||
// const argv = require('../funi').argv;
|
// const argv = require('../funi').argv;
|
||||||
//
|
//
|
||||||
// const lang = {
|
// const lang = {
|
||||||
|
|
@ -15,9 +16,6 @@ const got = require('got');
|
||||||
|
|
||||||
// do req
|
// do req
|
||||||
const getData = async (options) => {
|
const getData = async (options) => {
|
||||||
// let regionHeaders = ((argv.region !== undefined) && false) ? {
|
|
||||||
// 'Accept-Language': lang[argv.region].langCode,
|
|
||||||
// } : {};
|
|
||||||
let regionHeaders = {};
|
let regionHeaders = {};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -48,10 +46,6 @@ const getData = async (options) => {
|
||||||
gOptions.headers['Accept-Encoding'] = 'gzip, deflate, br';
|
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.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)}`;
|
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){
|
if(options.useToken && options.token){
|
||||||
gOptions.headers.Authorization = `Token ${options.token}`;
|
gOptions.headers.Authorization = `Token ${options.token}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue