[mir-coders] Problem with UK topic RSS feeds

Chris chrisc at indymedia.org
Fri Nov 26 07:52:49 PST 2004


Hi

The UK site has various regional RSS feeds, eg:

  http://www.indymedia.org.uk/en/regions/sheffield/newswire.rss
  http://www.indymedia.org.uk/en/regions/sheffield/features.rss

The newswire feed is fine, the features one never seems to
be updated, for example the Shefield one has the latest
item from 2004-08-21 and there have been two features on
the site since then. I think all the regional feeds have
this same problem.

Zapata suggest changing '10 minutes' to '120 minutes' in
the following code but this had no effect.

Done anyone have any suggestion as to how we can make
these feeds update?

Thanks

Chris

  <producer name="regionalsyndication">
    <verbs>
      <verb name="generate" description="Generates the regional rss feeds">
        <Define key="topiccondition" value="true"/>
      </verb>
      <verb name="quickupdate" default="1">
        <Define key="topiccondition" value="
            exists
                (select * from content_x_topic, content
                 where
                      topic_id=topic.id
                  and content.id=content_id
                  and content.is_published='t'
                  and (content.is_produced='f'
                       or content.webdb_lastchange>=now()-interval '120 minutes'))"/>
       </verb>
    </verbs>
    <body>
      <Enumerate key="region" table="topic" selection="archiv_url='regions' and ${topiccondition}">
        <RSSChannel
           articleSelection="is_published='1' and to_article_type = ${articletype.feature} and id in (select content_id from content_x_topic where topic_id = ${region.id})"
           channelfilename="${region.archiv_url}/${region.filename}/features.rss"
           channeltitle="uk.indymedia.org ${region.title} features"
           channeldescription="${region.description}"/>
        <RSSChannel
           articleSelection="is_published='1' and to_article_type = ${articletype.newswire} and id in (select content_id from content_x_topic where topic_id = ${region.id})"
           channelfilename="${region.archiv_url}/${region.filename}/newswire.rss"
           channeltitle="uk.indymedia.org ${region.title} newswire"
           channeldescription="${region.description}"/>
      </Enumerate>
    </body>
  </producer>




More information about the mir-coders mailing list