Some better behavior when getting msgs.
This commit is contained in:
parent
d9311ae5d2
commit
c0824c3885
@ -1,7 +1,11 @@
|
|||||||
3.3.2
|
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:
|
||||||
|
▪ 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 typos.
|
||||||
▪ Fixed some UI stuff in menus etc.
|
▪ Fixed some UI stuff in menus etc.
|
||||||
▪ Fixed problem with skin loading. (bug #25)
|
▪ Fixed problem with skin loading. (bug #25)
|
||||||
|
@ -516,7 +516,7 @@ int DatabaseQueries::updateMessages(QSqlDatabase db,
|
|||||||
|
|
||||||
if (message.m_customId.isEmpty()) {
|
if (message.m_customId.isEmpty()) {
|
||||||
// We need to recognize existing messages according URL & AUTHOR.
|
// 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(":feed"), feed_custom_id);
|
||||||
query_select_with_url.bindValue(QSL(":title"), message.m_title);
|
query_select_with_url.bindValue(QSL(":title"), message.m_title);
|
||||||
query_select_with_url.bindValue(QSL(":url"), message.m_url);
|
query_select_with_url.bindValue(QSL(":url"), message.m_url);
|
||||||
|
@ -205,6 +205,8 @@ TtRssGetHeadlinesResponse TtRssNetworkFactory::getHeadlines(int feed_id, int lim
|
|||||||
result = TtRssGetHeadlinesResponse(QString::fromUtf8(result_raw));
|
result = TtRssGetHeadlinesResponse(QString::fromUtf8(result_raw));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IOFactory::writeTextFile("aaa", result_raw);
|
||||||
|
|
||||||
if (network_reply.first != QNetworkReply::NoError) {
|
if (network_reply.first != QNetworkReply::NoError) {
|
||||||
qWarning("TT-RSS: getHeadlines failed with error %d.", network_reply.first);
|
qWarning("TT-RSS: getHeadlines failed with error %d.", network_reply.first);
|
||||||
}
|
}
|
||||||
@ -550,7 +552,7 @@ QList<Message> TtRssGetHeadlinesResponse::messages() const {
|
|||||||
// date/time number.
|
// date/time number.
|
||||||
message.m_created = TextFactory::parseDateTime(mapped["updated"].toDouble() * 1000);
|
message.m_created = TextFactory::parseDateTime(mapped["updated"].toDouble() * 1000);
|
||||||
message.m_createdFromFeed = true;
|
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_feedId = mapped["feed_id"].toString();
|
||||||
message.m_title = mapped["title"].toString();
|
message.m_title = mapped["title"].toString();
|
||||||
message.m_url = mapped["link"].toString();
|
message.m_url = mapped["link"].toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user