diff --git a/ChangeLog b/ChangeLog index a6ae8ed5..46bd7897 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23188,3 +23188,8 @@ 2022-06-01 Fred Gleason * Added environmental variables to the 'Ubuntu 22.04 LTS' section to 'DISTRO-SPECIFIC NOTES' in 'INSTALL'. +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 f6927fae..30415ae1 100644 --- a/rdrssd/rdrssd.cpp +++ b/rdrssd/rdrssd.cpp @@ -2,7 +2,7 @@ // // Rivendell RSS Processor Service // -// (C) Copyright 2020-2021 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,