mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-23 17:56:50 +03:00
about rss : new streams are aliased by their title
This commit is contained in:
parent
59c6f469a0
commit
2a9d2a4910
1 changed files with 4 additions and 1 deletions
|
@ -241,8 +241,11 @@ class RssStream : public QObject{
|
||||||
if (channel.tagName() == "channel") {
|
if (channel.tagName() == "channel") {
|
||||||
QDomElement property = channel.firstChild().toElement();
|
QDomElement property = channel.firstChild().toElement();
|
||||||
while(!property.isNull()) {
|
while(!property.isNull()) {
|
||||||
if (property.tagName() == "title")
|
if (property.tagName() == "title") {
|
||||||
title = property.text();
|
title = property.text();
|
||||||
|
if(alias==getUrl())
|
||||||
|
setAlias(title);
|
||||||
|
}
|
||||||
else if (property.tagName() == "link")
|
else if (property.tagName() == "link")
|
||||||
link = property.text();
|
link = property.text();
|
||||||
else if (property.tagName() == "description")
|
else if (property.tagName() == "description")
|
||||||
|
|
Loading…
Reference in a new issue