zarino/subscribe-with-feedbin

Make sure feed titles are not the same

Opened this issue · 0 comments

Here's an interesting example:

screen shot 2013-12-01 at 22 22 43

http://uxdesign.smashingmagazine.com publishes three feeds:

<link rel="alternate" type="application/atom+xml" title="News-Feed" href="http://rss1.smashingmagazine.com/feed/" />
<link type="application/atom+xml" rel="alternate" title="Smashing Magazine &raquo; UXDesign Feed" href="http://rss1.smashingmagazine.com/feed/?f=uxdesign-std" />
<link type="application/atom+xml" rel="alternate" title="Smashing Magazine &raquo; Feed" href="http://rss1.smashingmagazine.com/feed/" />

The first and third feeds are identical (the <link> elements just have different title attributes). The second feed has different content.

Before #1 was fixed, the three feeds were displayed with different titles, based on the title attributes of the <link> elements. But now, they get whatever's in the <title> tags of each feed – which is, stupidly, the same for all three feeds:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="" xml:base="http://www.smashingmagazine.com/wp-atom.php">
    <title type="text">Smashing Magazine Feed</title>

In this case, could we work out the titles are all the same, and revert back to the title attributes?