Issue #1045: start.fp.o parses the Magazine RSS feed incorrectly when an article has embedded video

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bcotton reported a new issue against the project: `fedora-websites` that you are following:
``
The magfeed.py script blindly takes the first `<enclosure>` element to use as the thumbnail for start.fedoraproject.org. This is fine in most cases, but if the article has embedded video, we end up with a blank thumbnail. The RSS feed in that case contains multiple enclosure elements and the featured image is listed last.

    <enclosure url="https://fedoramagazine.org/wp-content/uploads/2020/06/Screencast-from-25-06-20-100214.webm"; length="410087" type="video/webm"/>
    <enclosure url="https://fedoramagazine.org/wp-content/uploads/2020/06/Screencast-from-25-06-20-100811.webm"; length="388173" type="video/webm"/>
    <enclosure url="https://fedoramagazine.org/wp-content/uploads/2020/06/Screencast-from-24-06-20-234555.webm"; length="398605" type="video/webm"/>
    <enclosure url="https://fedoramagazine.org/wp-content/uploads/2020/06/Screencast-from-25-06-20-113943.webm"; length="1964954" type="video/webm"/>
    <enclosure url="https://fedoramagazine.org/wp-content/uploads/2020/07/networkansible-300x127.png"; length="36634" type="image/jpg"/>

We want it to only use enclosures with a type of `"image/jpg"` (note that the RSS feed uses this type for both jpg and png images) to prevent this.

``

To reply, visit the link below or just reply to this email
https://pagure.io/fedora-websites/issue/1045
_______________________________________________
websites mailing list -- websites@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to websites-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/websites@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Linux ARM]     [ARM Kernel]     [Older Fedora Users]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux