mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
check both urls for favicon
This commit is contained in:
@@ -29,8 +29,14 @@ public class DefaultFaviconFetcher extends AbstractFaviconFetcher {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte[] fetch(Feed feed) {
|
public byte[] fetch(Feed feed) {
|
||||||
String url = feed.getLink() != null ? feed.getLink() : feed.getUrl();
|
byte[] icon = fetch(feed.getLink());
|
||||||
|
if (icon == null) {
|
||||||
|
icon = fetch(feed.getUrl());
|
||||||
|
}
|
||||||
|
return icon;
|
||||||
|
}
|
||||||
|
|
||||||
|
private byte[] fetch(String url) {
|
||||||
if (url == null) {
|
if (url == null) {
|
||||||
log.debug("url is null");
|
log.debug("url is null");
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user