Slightly adapt (temporary) debug information from enclosure

This commit is contained in:
Bart De Vries 2021-04-11 20:31:17 +02:00
parent 515064e618
commit f5c20a92e2
1 changed files with 2 additions and 2 deletions

View File

@ -137,11 +137,11 @@ qint64 Enclosure::playPosition() const{
void Enclosure::setPlayPosition(const qint64 &position)
{
m_playposition = position;
qDebug() << "save playPosition" << m_entry->title();
qDebug() << "save playPosition" << position << m_entry->title();
// let's only save the play position to the database every 15 seconds
if (abs(m_playposition - m_playposition_dbsave) > 15000) {
qDebug() << "save playPosition to database" << m_entry->title();
qDebug() << "save playPosition to database" << position << m_entry->title();
QSqlQuery query;
query.prepare(QStringLiteral("UPDATE Enclosures SET playposition=:playposition WHERE id=:id AND feed=:feed"));
query.bindValue(QStringLiteral(":id"), m_entry->id());