From c5b068be1797d7964b41aa647a3554da77d8e938 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Fri, 1 Feb 2019 19:20:57 +0000 Subject: [PATCH] Optimizing feed link parsing --- .../src/main/java/com/readrops/readropslibrary/HtmlParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readropslibrary/src/main/java/com/readrops/readropslibrary/HtmlParser.java b/readropslibrary/src/main/java/com/readrops/readropslibrary/HtmlParser.java index 741721f4..fabaad5e 100644 --- a/readropslibrary/src/main/java/com/readrops/readropslibrary/HtmlParser.java +++ b/readropslibrary/src/main/java/com/readrops/readropslibrary/HtmlParser.java @@ -25,7 +25,7 @@ public final class HtmlParser { public static List getFeedLink(String url) throws Exception { List results = new ArrayList<>(); - Document document = Jsoup.connect(url).get(); + Document document = Jsoup.parse(getHTMLHeadFromUrl(url)); Elements elements = document.select("link");