diff options
Diffstat (limited to 'mediagoblin/plugins/subtitles/tools.py')
-rw-r--r-- | mediagoblin/plugins/subtitles/tools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/plugins/subtitles/tools.py b/mediagoblin/plugins/subtitles/tools.py index f947ba92..d9a5cb38 100644 --- a/mediagoblin/plugins/subtitles/tools.py +++ b/mediagoblin/plugins/subtitles/tools.py @@ -25,11 +25,11 @@ def open_subtitle(path): subtitle_public_filepath = get_path(path) with mg_globals.public_store.get_file( subtitle_public_filepath, 'rb') as subtitle_public_file: - text = subtitle_public_file.read().decode('utf-8') + text = subtitle_public_file.read().decode('utf-8','ignore') return text def save_subtitle(path,text): subtitle_public_filepath = get_path(path) with mg_globals.public_store.get_file( subtitle_public_filepath, 'wb') as subtitle_public_file: - subtitle_public_file.write(text)
\ No newline at end of file + subtitle_public_file.write(text) |