mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +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);
|
ParseImage(reader, ret);
|
||||||
} else if (name == "copyright") {
|
} else if (name == "copyright") {
|
||||||
ret->set_copyright(reader->readElementText());
|
ret->set_copyright(reader->readElementText());
|
||||||
} else if (name == "link" && reader->namespaceUri() == kAtomNamespace) {
|
} else if (name == "link" && reader->namespaceUri() == kAtomNamespace &&
|
||||||
if (ret->url().isEmpty() && reader->attributes().value("rel") == "self") {
|
ret->url().isEmpty() && reader->attributes().value("rel") == "self") {
|
||||||
ret->set_url(QUrl(reader->readElementText()));
|
ret->set_url(QUrl(reader->readElementText()));
|
||||||
}
|
|
||||||
} else if (name == "item") {
|
} else if (name == "item") {
|
||||||
ParseItem(reader, ret);
|
ParseItem(reader, ret);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user