summaryrefslogtreecommitdiff
path: root/rss/rss09xparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rss/rss09xparser.cpp')
-rw-r--r--rss/rss09xparser.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/rss/rss09xparser.cpp b/rss/rss09xparser.cpp
index 197e64b3..2de3209c 100644
--- a/rss/rss09xparser.cpp
+++ b/rss/rss09xparser.cpp
@@ -106,8 +106,12 @@ Item Rss09xParser::parse_item(xmlNode* itemNode)
start > 0 && authorfield[start] != '(';
start--) {
}
- it.author = authorfield.substr(
- start + 1, end - start);
+ if (start == 0) {
+ it.author_email = authorfield;
+ it.author = authorfield;
+ } else {
+ it.author = authorfield.substr(start + 1, end - start);
+ }
} else {
it.author_email = authorfield;
it.author = authorfield;