upgrade feed url from http to https if able

This commit is contained in:
Athou
2022-01-01 19:04:30 +01:00
parent c6601e5bbf
commit 0b3888a8ae
2 changed files with 16 additions and 0 deletions

View File

@@ -164,6 +164,14 @@ public class FeedUtils {
return sb.toString();
}
public static boolean isHttp(String url) {
return url.startsWith("http://");
}
public static boolean isHttps(String url) {
return url.startsWith("https://");
}
/**
* Normalize the url. The resulting url is not meant to be fetched but rather used as a mean to identify a feed and avoid duplicates
*/