Commit cd863189 authored by Geoffrey Métais's avatar Geoffrey Métais

Remove slashes in saved subtitle filename

(cherry picked from commit 65befa6c)
parent 4284ed43
......@@ -327,7 +327,7 @@ public class SubtitlesDownloader {
if (mToken == null || path == null) return;
final StringBuilder sb = new StringBuilder();
final String name = fileName.lastIndexOf('.') > 0 ? fileName.substring(0, fileName.lastIndexOf('.')) : fileName;
sb.append(SUBTITLES_DIRECTORY.getPath()).append('/').append(name.replace("/", "")).append('.').append(language).append('.').append(subFormat);
final String srtUrl = sb.toString();
FileOutputStream f = null;
GZIPInputStream gzIS = null;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment