mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2023-05-14 Fred Gleason <fredg@paravelsystems.com>
* Added a 'FEEDS.CDN_PURGE_PLUGIN_PATH' field to the database. * Incremented the database version to 369. * Added ' RDFeed::cdnPurgePluginPath()' and 'RDFeed::setCdnPurgePluginPath()' methods. * Removed the RD_MODULES_DIR #define from 'lib/rd.h'. * Changed the RD_PYPAD_SCRIPT_DIR #define in 'lib/rd.h' to be a static value of "/usr/lib/rivendell/pypad". * Added a 'CDN Purge Plug-In' control to the 'Feed' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// The Current Database Schema Version for Rivendell
|
||||
//
|
||||
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2023 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
|
||||
@@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 368
|
||||
#define RD_VERSION_DATABASE 369
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@@ -725,6 +725,19 @@ void RDFeed::setSha1Hash(const QString &str) const
|
||||
}
|
||||
|
||||
|
||||
QString RDFeed::cdnPurgePluginPath() const
|
||||
{
|
||||
return RDGetSqlValue("FEEDS","KEY_NAME",feed_keyname,"CDN_PURGE_PLUGIN_PATH").
|
||||
toString();
|
||||
}
|
||||
|
||||
|
||||
void RDFeed::setCdnPurgePluginPath(const QString &str) const
|
||||
{
|
||||
SetRow("CDN_PURGE_PLUGIN_PATH",str);
|
||||
}
|
||||
|
||||
|
||||
QByteArray RDFeed::imageData(int img_id) const
|
||||
{
|
||||
return RDGetSqlValue("FEED_IMAGES","ID",img_id,"DATA").toByteArray();
|
||||
|
@@ -131,6 +131,8 @@ class RDFeed : public QObject
|
||||
void setNormalizeLevel(int lvl) const;
|
||||
QString sha1Hash() const;
|
||||
void setSha1Hash(const QString &str) const;
|
||||
QString cdnPurgePluginPath() const;
|
||||
void setCdnPurgePluginPath(const QString &str) const;
|
||||
QByteArray imageData(int img_id) const;
|
||||
int importImageFile(const QString &pathname,QString *err_msg,
|
||||
QString desc="") const;
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
// Install-Dependent Path Values for Rivendell
|
||||
//
|
||||
// (C) Copyright 2008-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2008-2023 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
|
||||
@@ -23,11 +23,6 @@
|
||||
#ifndef RDPATHS_H
|
||||
#define RDPATHS_H
|
||||
|
||||
/*
|
||||
* Rivendell Loadable Modules Directory
|
||||
*/
|
||||
#define RD_MODULES_DIR "@libdir@/rivendell"
|
||||
|
||||
/*
|
||||
* Default Skins
|
||||
*/
|
||||
@@ -50,7 +45,13 @@ extern "C" {
|
||||
* PyPAD
|
||||
*/
|
||||
#define RD_PYPAD_PYTHON_PATH "@PYTHON@"
|
||||
#define RD_PYPAD_SCRIPT_DIR "@libdir@/rivendell/pypad"
|
||||
//#define RD_PYPAD_SCRIPT_DIR "@libdir@/rivendell/pypad"
|
||||
#define RD_PYPAD_SCRIPT_DIR "/usr/lib/rivendell/pypad"
|
||||
|
||||
/*
|
||||
* CDN Plug-ins
|
||||
*/
|
||||
#define RD_CDN_SCRIPT_DIR "/usr/lib/rivendell/cdn"
|
||||
|
||||
|
||||
#endif // RDPATHS_H
|
||||
|
Reference in New Issue
Block a user