utils: fix check for mrtalink url (#7636)

Fixes incorrect condition while checking metalink URLs for accesibility
This commit is contained in:
Abhishek Kumar 2023-06-19 12:23:22 +05:30 committed by GitHub
parent 1aa4f80741
commit 658daef715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,7 +416,7 @@ public class UriUtils {
List<String> urls = metalinkUrls.get("url"); List<String> urls = metalinkUrls.get("url");
boolean validUrl = false; boolean validUrl = false;
for (String u : urls) { for (String u : urls) {
if (url.endsWith("torrent")) { if (u.endsWith("torrent")) {
continue; continue;
} }
try { try {