mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Use constants for article field names in RSS::Feed
This commit is contained in:
parent
02f77a05dc
commit
4021bf68f7
@ -290,9 +290,9 @@ void Feed::loadArticlesLegacy()
|
|||||||
foreach (const QVariant &var, allOldItems.value(m_url).toList()) {
|
foreach (const QVariant &var, allOldItems.value(m_url).toList()) {
|
||||||
auto hash = var.toHash();
|
auto hash = var.toHash();
|
||||||
// update legacy keys
|
// update legacy keys
|
||||||
hash[QLatin1String("link")] = hash.take(QLatin1String("news_link"));
|
hash[Article::KeyLink] = hash.take(QLatin1String("news_link"));
|
||||||
hash[QLatin1String("torrentURL")] = hash.take(QLatin1String("torrent_url"));
|
hash[Article::KeyTorrentURL] = hash.take(QLatin1String("torrent_url"));
|
||||||
hash[QLatin1String("isRead")] = hash.take(QLatin1String("read"));
|
hash[Article::KeyIsRead] = hash.take(QLatin1String("read"));
|
||||||
try {
|
try {
|
||||||
auto article = new Article(this, hash);
|
auto article = new Article(this, hash);
|
||||||
if (!addArticle(article))
|
if (!addArticle(article))
|
||||||
|
Loading…
Reference in New Issue
Block a user