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:
parent
8c9e78a417
commit
e21c4ffeaa
|
@ -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
|
* Returns the image of this item, as specified in the feed.
|
||||||
* not have its own image.
|
* 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() {
|
public String getImageUrl() {
|
||||||
return (imageUrl != null) ? imageUrl : feed.getImageUrl();
|
return imageUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setImageUrl(String imageUrl) {
|
public void setImageUrl(String imageUrl) {
|
||||||
|
|
Loading…
Reference in New Issue