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

@@ -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;
}
}