Merge pull request #5181 from Korvox/master
OPML imports should prefer title to text attributes for podcast names
This commit is contained in:
commit
be471e1792
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user