From b4a68f431dc0d273d2a4abff3ffa82cfbee9aa35 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 30 Nov 2013 22:10:14 +0100 Subject: [PATCH] Make 'alternate' to the default rel value. --- feedgen/entry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index 699f885..1d1a156 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -405,7 +405,8 @@ class FeedEntry(object): self.__atom_link += ensure_format( link, set(['href', 'rel', 'type', 'hreflang', 'title', 'length']), set(['href']), - {'rel':['alternate', 'enclosure', 'related', 'self', 'via']} ) + {'rel':['alternate', 'enclosure', 'related', 'self', 'via']}, + {'rel': 'alternate'} ) # RSS only needs one URL. We use the first link for RSS: for l in self.__atom_link: if l.get('rel') == 'alternate':