Fix empty contentEncoded

This code duplication was forgotten in #2607
This commit is contained in:
ByteHamster 2018-05-04 13:57:52 +02:00
parent e16a111a12
commit 9f0d187efd
1 changed files with 2 additions and 8 deletions

View File

@ -554,15 +554,9 @@ public class FeedMedia extends FeedFile implements Playable {
public Callable<String> loadShownotes() {
return () -> {
if (item == null) {
item = DBReader.getFeedItem(
itemID);
item = DBReader.getFeedItem(itemID);
}
if (item.getContentEncoded() == null || item.getDescription() == null) {
DBReader.loadExtraInformationOfFeedItem(
item);
}
return (item.getContentEncoded() != null) ? item.getContentEncoded() : item.getDescription();
return item.loadShownotes().call();
};
}