changes to the way favicons are retrieved for YouTube feeds. Now instead of fetching the YouTube logo, it fetches the YouTube user's custom thumbnail.

This commit is contained in:
Tyler Gebhard
2014-10-26 03:03:02 -04:00
parent 3794d61a77
commit 9e0c94f1a4
3 changed files with 74 additions and 1 deletions

View File

@@ -322,7 +322,7 @@ public class FeedREST {
return Response.status(Status.NOT_FOUND).build();
}
Feed feed = subscription.getFeed();
String url = feed.getLink() != null ? feed.getLink() : feed.getUrl();
String url = faviconFetcher.exceptionUrl(feed.getUrl()) ? feed.getUrl() : (feed.getLink() != null ? feed.getLink() : feed.getUrl());
byte[] icon = faviconFetcher.fetch(url);
ResponseBuilder builder = null;