mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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:
@@ -518,4 +518,18 @@ public class FeedUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static String parseForImageUrl(byte[] xml) {
|
||||
String xmlString = null;
|
||||
try {
|
||||
String encoding = FeedUtils.guessEncoding(xml);
|
||||
xmlString = FeedUtils.trimInvalidXmlCharacters(new String(xml, encoding));
|
||||
/*if (xmlString == null) {
|
||||
throw new FeedException("Input string is null for url " + feedUrl);
|
||||
}*/
|
||||
xmlString = FeedUtils.replaceHtmlEntitiesWithNumericEntities(xmlString);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
return xmlString;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user