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:
parent
f501098998
commit
e6640f1d10
@ -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") {
|
||||
} 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user