Merge pull request #529 from HaveAGitGat/parser_update

Add better estimates for 2 pass hb encoding
This commit is contained in:
HaveAGitGat 2023-11-08 06:00:57 +00:00 committed by GitHub
commit 82b61eb4d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -21,6 +21,12 @@ var handbrakeParser = function (_a) {
percentage = outputNum;
}
}
if (str.includes('task 1 of 2')) {
percentage /= 2;
}
else if (str.includes('task 2 of 2')) {
percentage = 50 + (percentage / 2);
}
return percentage;
};
exports.handbrakeParser = handbrakeParser;

View file

@ -28,6 +28,12 @@ const handbrakeParser = ({
}
}
if (str.includes('task 1 of 2')) {
percentage /= 2;
} else if (str.includes('task 2 of 2')) {
percentage = 50 + (percentage / 2);
}
return percentage;
};