Commit 901f41e4 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Subtitles: try to generate hash for any file://

parent 6428e8ea
......@@ -360,7 +360,7 @@ public class SubtitlesDownloader {
long fileLength = 0;
final Uri mediaUri = media.getUri();
if (firstPass) {
if (FileUtils.canWrite(mediaUri)) {
if ("file".equals(mediaUri.getScheme())) {
File videoFile = new File(mediaUri.getPath());
hash = FileUtils.computeHash(videoFile);
fileLength = videoFile.length();
......
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