handle entry content only if the entry is new

This commit is contained in:
Athou
2013-05-29 16:42:45 +02:00
parent ed18bc55b7
commit 145285dd20
2 changed files with 11 additions and 4 deletions

View File

@@ -91,10 +91,8 @@ public class FeedParser {
entry.setAuthor(FeedUtils.truncate(item.getAuthor(), 128));
FeedEntryContent content = new FeedEntryContent();
content.setContent(FeedUtils.handleContent(getContent(item),
feed.getLink()));
content.setTitle(FeedUtils.truncate(FeedUtils.handleContent(
item.getTitle(), feed.getLink()), 2048));
content.setContent(getContent(item));
content.setTitle(item.getTitle());
SyndEnclosure enclosure = (SyndEnclosure) Iterables.getFirst(
item.getEnclosures(), null);
if (enclosure != null) {