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

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

parent d3bf1781
......@@ -363,7 +363,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