summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sfeed.c b/sfeed.c
index fd00a83..84308a9 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -41,7 +41,7 @@ enum TagId {
RSSTagDescription, RSSTagContentencoded,
RSSTagGuid, RSSTagLink, RSSTagDccreator, RSSTagAuthor,
/* Atom */
- AtomTagPublished, AtomTagUpdated, AtomTagTitle, AtomTagMediaTitle,
+ AtomTagPublished, AtomTagUpdated, AtomTagTitle,
AtomTagMediaDescription, AtomTagSummary, AtomTagContent,
AtomTagId, AtomTagLink, AtomTagAuthor
};
@@ -133,7 +133,6 @@ gettag(enum FeedType feedtype, const char *name, size_t namelen)
{ STRP("id"), AtomTagId },
{ STRP("link"), AtomTagLink },
{ STRP("media:description"), AtomTagMediaDescription },
- { STRP("media:title"), AtomTagMediaTitle },
{ STRP("published"), AtomTagPublished },
{ STRP("summary"), AtomTagSummary },
{ STRP("title"), AtomTagTitle },
@@ -611,11 +610,8 @@ xml_handler_start_el(XMLParser *p, const char *name, size_t namelen)
case RSSTagTitle:
ctx.field = &ctx.item.title;
break;
- case AtomTagMediaTitle:
case AtomTagTitle:
- /* prefer title over media:title if set */
- if (ctx.tagid != AtomTagMediaTitle || !ctx.item.content.len)
- ctx.field = &ctx.item.title;
+ ctx.field = &ctx.item.title;
break;
case RSSTagLink:
case AtomTagLink: