Commit 3d677495 authored by Geoffrey Métais's avatar Geoffrey Métais

Allow subs dl url starting by "https" only

(cherry picked from commit 39f6172b)
parent cd863189
......@@ -333,8 +333,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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment