Fixed not displaying embedded pictures

When items were written to the database, their RSS specified image was set to the podcast's image.
This prevented displaying the embedded picture because the image specified in RSS has a higher
priority than the image that is embedded.
This commit is contained in:
ByteHamster 2020-04-14 21:59:37 +02:00
parent 8c9e78a417
commit e21c4ffeaa
1 changed files with 4 additions and 3 deletions

View File

@ -411,11 +411,12 @@ public class FeedItem extends FeedComponent implements ShownotesProvider, ImageR
}
/**
* Returns the image of this item or the image of the feed if this item does
* not have its own image.
* Returns the image of this item, as specified in the feed.
* To load the image that can be displayed to the user, use {@link #getImageLocation},
* which also considers embedded pictures or the feed picture if no other picture is present.
*/
public String getImageUrl() {
return (imageUrl != null) ? imageUrl : feed.getImageUrl();
return imageUrl;
}
public void setImageUrl(String imageUrl) {