Make 'alternate' to the default rel value.

This commit is contained in:
Jimmy 2013-11-30 22:10:14 +01:00
parent ca860363e8
commit b4a68f431d

View file

@ -405,7 +405,8 @@ class FeedEntry(object):
self.__atom_link += ensure_format( link, self.__atom_link += ensure_format( link,
set(['href', 'rel', 'type', 'hreflang', 'title', 'length']), set(['href', 'rel', 'type', 'hreflang', 'title', 'length']),
set(['href']), 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: # RSS only needs one URL. We use the first link for RSS:
for l in self.__atom_link: for l in self.__atom_link:
if l.get('rel') == 'alternate': if l.get('rel') == 'alternate':