1
0
mirror of https://github.com/ElvishArtisan/rivendell.git synced 2025-04-10 23:02:20 +02:00

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 11:50:05 -04:00
parent 76ddbb9b35
commit e734c46332
2 changed files with 8 additions and 2 deletions

@ -20875,3 +20875,8 @@
2022-04-29 Fred Gleason <fredg@paravelsystems.com>
* Added a 'StayOnTop=' directive to the '[SoftKeys]' section of
rd.conf(5).
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.

@ -2,7 +2,7 @@
//
// Rivendell RSS Processor Service
//
// (C) Copyright 2020 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,