Compare commits
No commits in common. "c9b774c4980465b563674f9abd001382043dc239" and "647e9bb186db3f0b07dce6ed89bf5316457336e8" have entirely different histories.
c9b774c498
...
647e9bb186
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.167.9",
|
||||
"version": "1.167.8",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.167.9",
|
||||
"version": "1.167.8",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -504,10 +504,10 @@ async function fetchSource(source, baseMedia) {
|
|||
const maxAttempts = source.attempts || 3;
|
||||
|
||||
logger.silly(`Fetching media from ${source.src}`);
|
||||
// attempts
|
||||
|
||||
async function attempt(attempts = 1) {
|
||||
const hasher = new blake2.Hash('blake2b', { digestLength: 24 });
|
||||
let hasherReady = true;
|
||||
hasher.setEncoding('hex');
|
||||
|
||||
try {
|
||||
|
@ -519,10 +519,7 @@ async function fetchSource(source, baseMedia) {
|
|||
|
||||
hashStream.on('data', (chunk) => {
|
||||
size += chunk.length;
|
||||
|
||||
if (hasherReady) {
|
||||
hasher.write(chunk);
|
||||
}
|
||||
hasher.write(chunk);
|
||||
});
|
||||
|
||||
const { mimetype } = source.stream
|
||||
|
@ -554,7 +551,6 @@ async function fetchSource(source, baseMedia) {
|
|||
},
|
||||
};
|
||||
} catch (error) {
|
||||
hasherReady = false;
|
||||
hasher.end();
|
||||
|
||||
if (error.code !== 'VERIFY_TYPE') {
|
||||
|
|
Loading…
Reference in New Issue