hotfix: use Android client when requesting initial video info

This commit is contained in:
LuanRT
2022-08-11 20:35:30 -03:00
parent dc79b19d56
commit 34022fddfb
5 changed files with 56 additions and 68 deletions

View File

@@ -83,24 +83,6 @@ describe('YouTube.js Tests', () => {
expect(result).toBeTruthy();
}, 30000);
});
/*
// TODO: fix this, doesn't run on node 12
const { default: NToken } = require('../../src/deciphers/NToken');
const { default: Signature} = require('../../src/deciphers/Signature');
describe('Deciphers', () => {
it('Should decipher signature', () => {
const result = Signature.fromSourceCode(Constants.DECIPHERS.SIG.ALGORITHM).decipher(Constants.DECIPHERS.SIG.ORIGINAL_URL);
expect(result).toEqual(Constants.DECIPHERS.SIG.DECIPHERED_URL);
});
it('Should decipher ntoken', () => {
const result = NToken.fromSourceCode(Constants.DECIPHERS.N.ALGORITHM).transform(Constants.DECIPHERS.N.ORIGINAL_TOKEN);
expect(result).toEqual(Constants.DECIPHERS.N.DECIPHERED_TOKEN);
});
});
*/
});
async function download(id, session) {