mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Use constants for article field names in RSS::Feed
This commit is contained in:
parent
02f77a05dc
commit
4021bf68f7
1 changed files with 3 additions and 3 deletions
|
@ -290,9 +290,9 @@ void Feed::loadArticlesLegacy()
|
|||
foreach (const QVariant &var, allOldItems.value(m_url).toList()) {
|
||||
auto hash = var.toHash();
|
||||
// update legacy keys
|
||||
hash[QLatin1String("link")] = hash.take(QLatin1String("news_link"));
|
||||
hash[QLatin1String("torrentURL")] = hash.take(QLatin1String("torrent_url"));
|
||||
hash[QLatin1String("isRead")] = hash.take(QLatin1String("read"));
|
||||
hash[Article::KeyLink] = hash.take(QLatin1String("news_link"));
|
||||
hash[Article::KeyTorrentURL] = hash.take(QLatin1String("torrent_url"));
|
||||
hash[Article::KeyIsRead] = hash.take(QLatin1String("read"));
|
||||
try {
|
||||
auto article = new Article(this, hash);
|
||||
if (!addArticle(article))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue