mirror of
https://github.com/Athou/commafeed.git
synced 2026-09-20 19:51:09 +00:00
limit the number of favicon retries
This commit is contained in:
@@ -30,9 +30,10 @@ public class RootFaviconFetcher implements FaviconFetcher {
|
||||
url = feed.getUrl();
|
||||
}
|
||||
|
||||
URI uri = URI.create(url);
|
||||
String faviconUrl = "%s://%s/favicon.ico".formatted(uri.getScheme(), uri.getHost());
|
||||
try {
|
||||
URI uri = URI.create(url.trim());
|
||||
String faviconUrl = "%s://%s/favicon.ico".formatted(uri.getScheme(), uri.getHost());
|
||||
|
||||
log.debug("getting root icon at {}", faviconUrl);
|
||||
HttpResult result = getter.get(faviconUrl);
|
||||
return new Favicon(result.content(), result.contentType());
|
||||
|
||||
Reference in New Issue
Block a user