mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 15:45:59 +01:00
2017-08-31 Fred Gleason <fredg@paravelsystems.com>
* Modified web client components to use a distinctive http USER_AGENT string.
This commit is contained in:
@@ -85,8 +85,9 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Read Configuration
|
||||
//
|
||||
RDConfig *config=new RDConfig();
|
||||
config=new RDConfig();
|
||||
config->load();
|
||||
config->setModuleName("rdfeed.cgi");
|
||||
|
||||
//
|
||||
// Determine Range
|
||||
@@ -279,7 +280,7 @@ QString MainObject::ResolveChannelWildcards(RDSqlQuery *chan_q)
|
||||
QString MainObject::ResolveItemWildcards(const QString &keyname,
|
||||
RDSqlQuery *item_q,RDSqlQuery *chan_q)
|
||||
{
|
||||
RDFeed *feed=new RDFeed(keyname);
|
||||
RDFeed *feed=new RDFeed(keyname,config);
|
||||
QString ret=chan_q->value(11).toString();
|
||||
ret.replace("%ITEM_TITLE%",RDXmlEscape(item_q->value(0).toString()));
|
||||
ret.replace("%ITEM_DESCRIPTION%",
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <qobject.h>
|
||||
#include <qsqldatabase.h>
|
||||
|
||||
#include <rdconfig.h>
|
||||
#include <rddb.h>
|
||||
|
||||
class MainObject : public QObject
|
||||
@@ -41,6 +42,7 @@ class MainObject : public QObject
|
||||
unsigned cast_id);
|
||||
bool ShouldCount(const QString &hdr);
|
||||
void Redirect(const QString &url);
|
||||
RDConfig *config;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user