mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
unused code cleanup
This commit is contained in:
@@ -50,15 +50,8 @@ public class YoutubeFaviconFetcher extends AbstractFaviconFetcher {
|
|||||||
if (thumbnails.isEmpty()) {
|
if (thumbnails.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String thumbnailUrl = thumbnails.get(0).attr("abs:url");
|
String thumbnailUrl = thumbnails.get(0).attr("abs:url");
|
||||||
|
|
||||||
int thumbnailStart = thumbnailUrl.indexOf("<media:thumbnail url='");
|
|
||||||
int thumbnailEnd = thumbnailUrl.indexOf("'/>", thumbnailStart);
|
|
||||||
if (thumbnailStart != -1) {
|
|
||||||
thumbnailUrl = thumbnailUrl.substring(thumbnailStart + "<media:thumbnail url='".length(), thumbnailEnd);
|
|
||||||
}
|
|
||||||
|
|
||||||
// final get to actually retrieve the thumbnail
|
// final get to actually retrieve the thumbnail
|
||||||
HttpResult iconResult = getter.getBinary(thumbnailUrl, TIMEOUT);
|
HttpResult iconResult = getter.getBinary(thumbnailUrl, TIMEOUT);
|
||||||
bytes = iconResult.getContent();
|
bytes = iconResult.getContent();
|
||||||
|
|||||||
Reference in New Issue
Block a user