fix: isQualityPoor
This commit is contained in:
@@ -590,7 +590,7 @@ class YouTubeCaptionProvider {
|
|||||||
return subtitles;
|
return subtitles;
|
||||||
}
|
}
|
||||||
|
|
||||||
#isQualityPoor(lines, lengthThreshold = 250, percentageThreshold = 0.1) {
|
#isQualityPoor(lines, lengthThreshold = 250, percentageThreshold = 0.2) {
|
||||||
if (lines.length === 0) return false;
|
if (lines.length === 0) return false;
|
||||||
const longLinesCount = lines.filter(
|
const longLinesCount = lines.filter(
|
||||||
(line) => line.text.length > lengthThreshold
|
(line) => line.text.length > lengthThreshold
|
||||||
|
|||||||
Reference in New Issue
Block a user