store and expose entry categories (#727)

This commit is contained in:
Athou
2015-05-03 09:17:54 +02:00
parent e8769d09a8
commit efa38d5ee9
8 changed files with 26 additions and 1 deletions

View File

@@ -86,6 +86,8 @@ public class FeedParser {
FeedEntryContent content = new FeedEntryContent();
content.setContent(getContent(item));
content.setCategories(FeedUtils.truncate(
item.getCategories().stream().map(c -> c.getName()).collect(Collectors.joining(", ")), 4096));
content.setTitle(getTitle(item));
content.setAuthor(StringUtils.trimToNull(item.getAuthor()));
SyndEnclosure enclosure = Iterables.getFirst(item.getEnclosures(), null);