mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
More RSS code clean up
This commit is contained in:
parent
138cd90736
commit
7616c22897
7 changed files with 74 additions and 58 deletions
|
@ -119,7 +119,7 @@ QString RssFeed::title() const{
|
|||
return m_title;
|
||||
}
|
||||
|
||||
void RssFeed::setAlias(const QString &new_name){
|
||||
void RssFeed::rename(const QString &new_name){
|
||||
qDebug() << "Renaming stream to" << new_name;
|
||||
m_alias = new_name;
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ bool RssFeed::parseRSS(QIODevice* device) {
|
|||
if(xml.name() == "title") {
|
||||
m_title = xml.readElementText();
|
||||
if(m_alias == url())
|
||||
setAlias(m_title);
|
||||
rename(m_title);
|
||||
}
|
||||
else if(xml.name() == "image") {
|
||||
QString icon_path = xml.attributes().value("url").toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue