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

Allow subs dl url starting by "https" only

(cherry picked from commit 39f6172b)
parent cd863189
No related branches found
Tags 3.5.3-beta02
No related merge requests found
......@@ -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));
......
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