[Describe the problem you’re having:]
it appears I have something wrong with enclosure assignment in generated feeds.
An image enclosed* with a feed item gets adapted by subsequent items (which don’t bring their own enclosure) apparently until a new enclosure is encountered in the feed; then the feed will adapt that new image for subsequent items until the next new enclosure is encountered. Here’s a few example output URLs that show rather quickly what I mean when thrown into firefox’ address bar e.g.
- https://liberal.is/rssmix/public.php?op=rss&id=-1026&key=xbz0i057b6d6f63472a
- https://liberal.is/rssmix/public.php?op=rss&id=-1028&key=7msy8757dd177f1f5e5
(I admit, I’m bastardizing the ${ARTICLE_ENCLOSURE_URL} into enforcing display of an image - but that shouldn’t be causing the repetition I’m seeing, should it? If no enclosure was included, the URL should be empty, not haphazardly (re)populated by anything from earlier items))
This happens only outbound (generated feeds); when viewing items in tt-rss itself all seems unaffected. Hence I’m thinking it must be my generated feed template.
[If possible include steps to reproduce the problem:]
Try this as your /templates/generated_feed.txt (be sure to have a backup of any working instance of your own template before you do) :
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<!-- $BeginBlock feed -->
<channel>
<title>[Aggregat] ${FEED_TITLE}</title>
<link>${FEED_URL}</link>
<description>ausgewählte Meldungen aus ausgewählten Medien, kuratiert von ${SELF_URL} </description>
<language>en-us</language>
<copyright>(Rechte gemäß der von einzelnen Feedanbietern definierten Angaben)</copyright>
<lastBuildDate>${ARTICLE_UPDATED_ATOM}</lastBuildDate>
<docs>http://testing.userland.com/rss</docs>
<generator>Tiny Tiny RSS/${VERSION} @ </generator>
<category domain="Syndic8">1765</category>
<managingEditor>[email protected] (Firstname Lastname)</managingEditor>
<webMaster>[email protected] (FirstName Lastname)</webMaster>
<ttl>45</ttl>
<!-- $BeginBlock entry -->
<item>
<link>${ARTICLE_LINK}</link>
<guid>${ARTICLE_LINK}</guid>
<title>${ARTICLE_TITLE}</title>
<description><![CDATA[ <span style="font-size: 75%; color: #999; line-height: 0.75em;"><span class="via-lma-branding">[ via <a title="liberal.is Media-Aggregat/ion z.Th. '${FEED_TITLE}'" href="http://liberal.is?s=${FEED_TITLE}" target="_blank">lma</a> ] </span>${ARTICLE_SOURCE_TITLE} | ${ARTICLE_AUTHOR} <span style="color: #eee;"> ¦ </span> </span> <img class="tt-rss-item-img" src="${ARTICLE_ENCLOSURE_URL}" alt="" /> ${ARTICLE_EXCERPT} <div style="clear: left;"></div>
<!-- pixeldemo -->
<img alt=""
border="0"
src="http://stats.yourstatsdomain.com/some.gif?host=yourhost.com"
width="1" height="1" /> <!-- end pixeldemo -->
]]> </description>
<pubDate>${ARTICLE_UPDATED_ATOM}</pubDate>
<dc:creator><![CDATA[${ARTICLE_AUTHOR}]]></dc:creator>
<source url="${ARTICLE_LINK}">${ARTICLE_SOURCE_TITLE} (${ARTICLE_UPDATED_ATOM})</source>
<!-- $BeginBlock category -->
<category>${ARTICLE_CATEGORY}</category>
<!-- $EndBlock category -->
<!-- $BeginBlock enclosure -->
<enclosure length="${ARTICLE_ENCLOSURE_LENGTH}" type="${ARTICLE_ENCLOSURE_TYPE}"
url="${ARTICLE_ENCLOSURE_URL}" />
<!-- $EndBlock enclosure -->
</item>
<!-- $EndBlock entry -->
</channel>
<!-- $EndBlock feed -->
</rss>
Thanks for any hep you may be able to procure. Cheers -