mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user