From e734c46332f4426e39cbb1897d7817dcb5e552b0 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 23 Jun 2022 11:50:05 -0400 Subject: [PATCH] 2022-06-23 Fred Gleason * 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 --- ChangeLog | 5 +++++ rdrssd/rdrssd.cpp | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 28cb5b87..4a5fb0c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20875,3 +20875,8 @@ 2022-04-29 Fred Gleason * Added a 'StayOnTop=' directive to the '[SoftKeys]' section of rd.conf(5). +2022-06-23 Fred Gleason + * 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. diff --git a/rdrssd/rdrssd.cpp b/rdrssd/rdrssd.cpp index 36049675..a2b327ee 100644 --- a/rdrssd/rdrssd.cpp +++ b/rdrssd/rdrssd.cpp @@ -2,7 +2,7 @@ // // Rivendell RSS Processor Service // -// (C) Copyright 2020 Fred Gleason +// (C) Copyright 2020-2022 Fred Gleason // // 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()value(1).isNull())&&(q->value(1).toDateTime()config(),q->value(0).toUInt()); if(!cast->dropAudio(feed,&err_msg,false)) { rda->syslog(LOG_WARNING,