OPML imports should prefer title attributes to text attributes for podcast names

This commit is contained in:
Matt Scheirer 2016-01-02 21:37:40 -05:00
parent 9056963225
commit 8193f6c2ec
1 changed files with 6 additions and 1 deletions

View File

@ -291,7 +291,12 @@ void PodcastParser::ParseOutline(QXmlStreamReader* reader,
// Parse the feed and add it to this container
Podcast podcast;
podcast.set_description(attributes.value("description").toString());
podcast.set_title(attributes.value("text").toString());
QString title = attributes.value("title").toString();
if (title.isEmpty()) {
title = attributes.value("text").toString();
}
podcast.set_title(title);
podcast.set_image_url_large(QUrl::fromEncoded(
attributes.value("imageHref").toString().toAscii()));
podcast.set_url(QUrl::fromEncoded(