mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 21:51:25 -07:00
[RSS] Improve error handling when a RSS feed doesn't contain torrents
This commit is contained in:
parent
b78ccf289e
commit
2955bb5488
3 changed files with 10 additions and 2 deletions
|
@ -82,7 +82,7 @@ const QString& RssArticle::author() const {
|
|||
}
|
||||
|
||||
const QString& RssArticle::torrentUrl() const {
|
||||
return m_torrentUrl.isEmpty() ? m_link : m_torrentUrl;
|
||||
return m_torrentUrl;
|
||||
}
|
||||
|
||||
const QString& RssArticle::link() const {
|
||||
|
@ -123,6 +123,6 @@ const QString& RssArticle::title() const
|
|||
}
|
||||
|
||||
void RssArticle::handleTorrentDownloadSuccess(const QString &url) {
|
||||
if (url == m_torrentUrl || url == m_link)
|
||||
if (url == m_torrentUrl)
|
||||
markAsRead();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue