diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG index bdbaf0c1b..75d13331a 100755 --- a/resources/text/CHANGELOG +++ b/resources/text/CHANGELOG @@ -1,7 +1,11 @@ 3.3.2 ————— +Changed: +▪ Feed updating/message downloading logic is now a bit simpler. Message downloading is still parallelized but final storing into DB is not. It is now queued. This slows down the proces only a bit, but gives more reliability. + Fixed: +▪ Fixed problems with obtaining custom ID for downloaded messages in TT-RSS plugin. This caused probably a lot of problems with mismatch of downloaded/real unread messages counts. ▪ Fixed some typos. ▪ Fixed some UI stuff in menus etc. ▪ Fixed problem with skin loading. (bug #25) diff --git a/src/miscellaneous/databasequeries.cpp b/src/miscellaneous/databasequeries.cpp index 96554055d..30d0d718d 100755 --- a/src/miscellaneous/databasequeries.cpp +++ b/src/miscellaneous/databasequeries.cpp @@ -516,7 +516,7 @@ int DatabaseQueries::updateMessages(QSqlDatabase db, if (message.m_customId.isEmpty()) { // We need to recognize existing messages according URL & AUTHOR. - // NOTE: This concerns messages from standard account. + // NOTE: This particularly concerns messages from standard account. query_select_with_url.bindValue(QSL(":feed"), feed_custom_id); query_select_with_url.bindValue(QSL(":title"), message.m_title); query_select_with_url.bindValue(QSL(":url"), message.m_url); diff --git a/src/services/tt-rss/network/ttrssnetworkfactory.cpp b/src/services/tt-rss/network/ttrssnetworkfactory.cpp index b8949fc25..8264d4d3c 100755 --- a/src/services/tt-rss/network/ttrssnetworkfactory.cpp +++ b/src/services/tt-rss/network/ttrssnetworkfactory.cpp @@ -205,6 +205,8 @@ TtRssGetHeadlinesResponse TtRssNetworkFactory::getHeadlines(int feed_id, int lim result = TtRssGetHeadlinesResponse(QString::fromUtf8(result_raw)); } + IOFactory::writeTextFile("aaa", result_raw); + if (network_reply.first != QNetworkReply::NoError) { qWarning("TT-RSS: getHeadlines failed with error %d.", network_reply.first); } @@ -550,7 +552,7 @@ QList TtRssGetHeadlinesResponse::messages() const { // date/time number. message.m_created = TextFactory::parseDateTime(mapped["updated"].toDouble() * 1000); message.m_createdFromFeed = true; - message.m_customId = mapped["id"].toString(); + message.m_customId = QString::number(mapped["id"].toInt()); message.m_feedId = mapped["feed_id"].toString(); message.m_title = mapped["title"].toString(); message.m_url = mapped["link"].toString();