2022-06-23 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdrssd(8) that caused a podcast episode to be
	deleted immediately after being made active if the 'Air Date/Time'
	was set for the future and 'Item Expires' was set to 'No' in the
	'Editing Item' dialog.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-06-23 17:16:58 -04:00
parent 1ecfb0b35b
commit 8e9be755f6
2 changed files with 8 additions and 2 deletions

View File

@ -23188,3 +23188,8 @@
2022-06-01 Fred Gleason <fredg@paravelsystems.com>
* Added environmental variables to the 'Ubuntu 22.04 LTS' section to
'DISTRO-SPECIFIC NOTES' in 'INSTALL'.
2022-06-23 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdrssd(8) that caused a podcast episode to be
deleted immediately after being made active if the 'Air Date/Time'
was set for the future and 'Item Expires' was set to 'No' in the
'Editing Item' dialog.

View File

@ -2,7 +2,7 @@
//
// Rivendell RSS Processor Service
//
// (C) Copyright 2020-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2020-2022 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -146,7 +146,8 @@ void MainObject::ProcessFeed(const QString &key_name)
q=new RDSqlQuery(sql);
while(q->next()) {
bool deleted=false;
if(q->value(1).toDateTime()<now) { // Delete expired cast
if((!q->value(1).isNull())&&(q->value(1).toDateTime()<now)) {
// Delete expired cast
RDPodcast *cast=new RDPodcast(rda->config(),q->value(0).toUInt());
if(!cast->dropAudio(feed,&err_msg,false)) {
rda->syslog(LOG_WARNING,