1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Fix a parse error on RSS feeds that had non-self atom links

This commit is contained in:
David Sansome 2012-03-09 18:58:05 +00:00
parent f501098998
commit e6640f1d10

View File

@ -104,10 +104,9 @@ void PodcastParser::ParseChannel(QXmlStreamReader* reader, Podcast* ret) const {
ParseImage(reader, ret);
} else if (name == "copyright") {
ret->set_copyright(reader->readElementText());
} else if (name == "link" && reader->namespaceUri() == kAtomNamespace) {
if (ret->url().isEmpty() && reader->attributes().value("rel") == "self") {
ret->set_url(QUrl(reader->readElementText()));
}
} else if (name == "link" && reader->namespaceUri() == kAtomNamespace &&
ret->url().isEmpty() && reader->attributes().value("rel") == "self") {
ret->set_url(QUrl(reader->readElementText()));
} else if (name == "item") {
ParseItem(reader, ret);
} else {