Skip to content
Snippets Groups Projects
Commit 39f6172b authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Allow subs dl url starting by "https" only

parent 65befa6c
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment