for start.fedoraprojectorg
This commit iterates over the enclosure tags of each article, and uses the first one whose type attribute is 'image/jpg'. In the case no enclosure with this criteria is found, it will use the last enclosure in the list.
type
Fixes issue #1045
I tested this and can verify it works to solve the issue with broken image links from the magazine feed. Thanks @vinaydeshmukh for getting this done, you beat me to the solution!
@vinaydeshmukh I see you haven't completed the Fedora Project Contributor Agreement (FPCA). Would you mind doing that before I merge this? See the wiki for more information.
Metadata Update from @bcotton: - Pull-request tagged with: start.fp.o
Metadata Update from @bcotton: - Request assigned
@bcotton No, not at all. I've completed the FCPA now.
@jakfrost :D
@vinaydeshmukh :tada: merging!
Pull-Request has been merged by bcotton
for start.fedoraprojectorg
This commit iterates over the enclosure tags of each article, and uses
the first one whose
typeattribute is 'image/jpg'.In the case no enclosure with this criteria is found, it will use the
last enclosure in the list.
Fixes issue #1045