Commit 39f6172b authored by Geoffrey Métais's avatar Geoffrey Métais

Allow subs dl url starting by "https" only

parent 65befa6c
......@@ -330,8 +330,8 @@ public class SubtitlesDownloader {
GZIPInputStream gzIS = null;
URL url;
HttpURLConnection urlConnection;
try {
url = new URL(subUrl);
if (subUrl.startsWith("https")) try {
url = new URL(subUrl);
urlConnection = (HttpURLConnection) url.openConnection();
// We get the first matching subtitle
f = new FileOutputStream(new File(srtUrl));
......
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