From 6134d88f7fc6f5e8b699162d3ec9a8d7096dc321 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 24 Jan 2018 14:38:00 -0500 Subject: [PATCH] Incresing the number of line used for language detection in subtitles --- list_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list_subtitles.py b/list_subtitles.py index 04121af50..12f5fdbdb 100644 --- a/list_subtitles.py +++ b/list_subtitles.py @@ -36,7 +36,7 @@ def store_subtitles(file): actual_subtitles.append([str(language), path_replace_reverse(os.path.join(os.path.dirname(file), subtitle))]) else: with open(path_replace(os.path.join(os.path.dirname(file), subtitle)), 'r') as f: - text = list(islice(f, 20)) + text = list(islice(f, 100)) text = ' '.join(text) encoding = UnicodeDammit(text) try: