filipedeschamps / rss-feed-emitter

Super RSS News Feed aggregator written in Node.js and ES6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fired 'new-item' if 'title' has changed

ga2mer opened this issue · comments

If title has changed, 'new-item' fired.

Why not use 'guid' in RSS or 'id' in Atom if exists?

Like:

return _.find( feed.items, item.guid || item.id ? {
      [ item.guid ? 'guid' : 'id' ]: item.guid || item.id
    } : {
      link: item.link,
      title: item.title
    } );

@ga2mer awesome!

The logic seems fuzzy, would you mind to make a PR implementing it with a more stepped logic?