From 47a372282a5043a038d4de824671ffff913f1c43 Mon Sep 17 00:00:00 2001 From: Waheed Ahmed Date: Tue, 13 Jan 2015 16:00:18 +0500 Subject: [PATCH] Fixed transcript skip first line if it contains BOM(Byte Order Mark). TNL-935 --- .../views/tests/test_transcripts.py | 42 +++++++++++++++++++ .../contentstore/views/transcripts_ajax.py | 3 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/tests/test_transcripts.py b/cms/djangoapps/contentstore/views/tests/test_transcripts.py index 9427b0c39c..bc00f060a4 100644 --- a/cms/djangoapps/contentstore/views/tests/test_transcripts.py +++ b/cms/djangoapps/contentstore/views/tests/test_transcripts.py @@ -116,6 +116,8 @@ class TestUploadtranscripts(Basetranscripts): """)) self.bad_name_srt_file.seek(0) + self.ufeff_srt_file = tempfile.NamedTemporaryFile(suffix='.srt') + def test_success_video_module_source_subs_uploading(self): self.item.data = textwrap.dedent("""