2023-05-08 Fred Gleason <fredg@paravelsystems.com>

* Added a 'FEEDS.SHA1_HASH' field to the database.
	* Incremented the database version to 368.
	* Added 'RDFeed::sha1Hash()' and 'RDFeed::setSha1Hash()' methods.
	* Added a 'RDSha1HashData()' function.
	* Optimized the podcasting subsystem so as to upload feed XML only
	when the XML contents have actually changed.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-05-08 13:23:01 -04:00
parent 1e73e29028
commit afd6a67cd5
15 changed files with 201 additions and 106 deletions

View File

@@ -713,6 +713,18 @@ void RDFeed::setNormalizeLevel(int lvl) const
}
QString RDFeed::sha1Hash() const
{
return RDGetSqlValue("FEEDS","KEY_NAME",feed_keyname,"SHA1_HASH").toString();
}
void RDFeed::setSha1Hash(const QString &str) const
{
SetRow("SHA1_HASH",str);
}
QByteArray RDFeed::imageData(int img_id) const
{
return RDGetSqlValue("FEED_IMAGES","ID",img_id,"DATA").toByteArray();