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:
Fred Gleason
2017-08-31 12:38:39 -04:00
parent 8d9a2ecadc
commit aef7c2229b
80 changed files with 216 additions and 69 deletions

View File

@@ -45,8 +45,8 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
RDSqlQuery *q1;
int ypos=0;
cast_cast=new RDPodcast(cast_id);
cast_feed=new RDFeed(cast_cast->feedId());
cast_cast=new RDPodcast(config,cast_id);
cast_feed=new RDFeed(cast_cast->feedId(),config);
cast_status=cast_cast->status();
setCaption(tr("Editing PodCast"));

View File

@@ -95,7 +95,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
//
// The Feed
//
list_feed=new RDFeed(feed_id,this);
list_feed=new RDFeed(feed_id,config,this);
//
// Progress Dialog
@@ -335,7 +335,7 @@ void ListCasts::deleteData()
qApp->processEvents();
sleep(1);
qApp->processEvents();
RDPodcast *cast=new RDPodcast(item->id());
RDPodcast *cast=new RDPodcast(config,item->id());
if(!cast->removeAudio(list_feed,&err_text,config->logXloadDebugData())) {
if(QMessageBox::warning(this,tr("Remote Error"),
tr("Unable to delete remote audio!\n")+
@@ -513,7 +513,7 @@ void ListCasts::GetEncoderId()
RDSqlQuery *q;
list_encoder_id=-1;
RDFeed *feed=new RDFeed(list_feed_id);
RDFeed *feed=new RDFeed(list_feed_id,config);
int format=feed->uploadFormat();
delete feed;
if((format>0)&&(format<100)) { // Built-in format

View File

@@ -191,7 +191,7 @@ void PickReportDates::GenerateSubscriptionReport(const QString &keyname,
QString sql;
RDSqlQuery *q;
RDFeed *feed=new RDFeed(keyname,this);
RDFeed *feed=new RDFeed(keyname,config,this);
unsigned total=0;
unsigned rss_total=0;
unsigned audio_total=0;
@@ -253,8 +253,8 @@ void PickReportDates::GenerateEpisodeReport(const QString &keyname,
QString sql;
RDSqlQuery *q;
RDFeed *feed=new RDFeed(keyname,this);
RDPodcast *cast=new RDPodcast(cast_id);
RDFeed *feed=new RDFeed(keyname,config,this);
RDPodcast *cast=new RDPodcast(config,cast_id);
//
// Header

View File

@@ -96,8 +96,10 @@ MainWidget::MainWidget(QWidget *parent)
//
// Load Local Configs
//
config=new RDConfig();
config=new RDConfig(RD_CONF_FILE);
config->load();
config->setModuleName("RDCastManager");
str1=QString("RDCastManager")+" v"+VERSION+" - "+tr("Host");
str2=QString(tr("User: [Unknown]"));
setCaption(QString().sprintf("%s: %s, %s",(const char *)str1,