Menu

#11 Updated Item patch

open
nobody
None
5
2004-08-11
2004-08-11
Jer
No

The default behavior in FOF when updating feeds is to
check if a new feed item has the same "link field" as
an existing feed item. If so, they are judged to be
indentical, and the new feed item is discarded.

This patch changes that behavior; FOF checks both the
"link field" and "title field" and if both are
identical to an old item, the new feed item is
considered identical to the old item. However, the new
feed item, instead of being discarded, is then compared
to the old item using its "content field". If the
content differs, the old feed is updated with the new
content and the "read field" flag is reset to "false".

(Note: apply this patch before the PEAR::DB patch, or
edit by hand; it's small)

Discussion

  • Jer

    Jer - 2004-08-11

    Updated Item patch

     
  • Edmond Hui

    Edmond Hui - 2004-08-20

    Logged In: YES
    user_id=850273

    should we be adding HTTP conditional get function as well. It
    is supposed to the way to tell whether a feed has changed....
    I believed.

    http://fishbowl.pastiche.org/2002/10/21/http_conditional_get_
    for_rss_hackers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.