Commit 65befa6c authored by Geoffrey Métais's avatar Geoffrey Métais

Remove slashes in saved subtitle filename

parent d4c32f47
......@@ -324,7 +324,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).append('.').append(language).append('.').append(subFormat);
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
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment