mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-10 14:47:10 +01:00
2020-02-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'FEEDS.AUDIENCE_METRICS' field to the database. * Incremented the database version to 316. * Added a 'Collect Audience Metrics' checkbox to the 'Feed' dialog in rdadmin(1). * Added an 'RDTransfer' base class. * Rebased 'RDDelete' to 'RDTransfer'. * Added 'sftp' support to 'RDDelete'. * Added 'file' support to 'RDDelete'. * Refactored RSS generation to occur in 'RDFeed'. * Added a 'delete_test' test harness.
This commit is contained in:
@@ -409,6 +409,8 @@ void EditCast::reportData()
|
||||
|
||||
void EditCast::okData()
|
||||
{
|
||||
QString err_msg;
|
||||
|
||||
cast_cast->setItemTitle(cast_item_title_edit->text());
|
||||
cast_cast->setItemAuthor(cast_item_author_edit->text());
|
||||
cast_cast->setItemCategory(cast_item_category_edit->text());
|
||||
@@ -445,6 +447,9 @@ void EditCast::okData()
|
||||
cast_feed->
|
||||
setLastBuildDateTime(RDLocalToUtc(QDateTime(QDate::currentDate(),
|
||||
QTime::currentTime())));
|
||||
|
||||
if(!cast_feed->postXml(&err_msg)) {
|
||||
}
|
||||
done(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -224,7 +224,8 @@ void ListCasts::addCartData()
|
||||
unsigned cast_id=list_feed->postCut(rda->user(),rda->station(),cutname,&err,
|
||||
rda->config()->logXloadDebugData(),rda->config());
|
||||
if(err!=RDFeed::ErrorOk) {
|
||||
QMessageBox::warning(this,tr("Posting Error"),RDFeed::errorString(err));
|
||||
QMessageBox::warning(this,"RDCastManager - "+tr("Posting Error"),
|
||||
RDFeed::errorString(err));
|
||||
return;
|
||||
}
|
||||
EditCast *edit_cast=new EditCast(cast_id,this);
|
||||
@@ -249,7 +250,8 @@ void ListCasts::addFileData()
|
||||
unsigned cast_id=list_feed->postFile(rda->station(),srcfile,&err,
|
||||
rda->config()->logXloadDebugData(),rda->config());
|
||||
if(err!=RDFeed::ErrorOk) {
|
||||
QMessageBox::warning(this,tr("Posting Error"),RDFeed::errorString(err));
|
||||
QMessageBox::warning(this,"RDCastManager - "+tr("Posting Error"),
|
||||
RDFeed::errorString(err));
|
||||
return;
|
||||
}
|
||||
EditCast *edit_cast=new EditCast(cast_id,this);
|
||||
@@ -287,7 +289,7 @@ void ListCasts::deleteData()
|
||||
if(item==NULL) {
|
||||
return;
|
||||
}
|
||||
if(QMessageBox::question(this,tr("Delete Podcast"),
|
||||
if(QMessageBox::question(this,"RDCastManager - "+tr("Delete Podcast"),
|
||||
tr("Are you sure you want to delete this podcast?"),
|
||||
QMessageBox::Yes,QMessageBox::No)==
|
||||
QMessageBox::No) {
|
||||
@@ -304,7 +306,7 @@ void ListCasts::deleteData()
|
||||
qApp->processEvents();
|
||||
RDPodcast *cast=new RDPodcast(rda->config(),item->id());
|
||||
if(!cast->removeAudio(list_feed,&err_text,rda->config()->logXloadDebugData())) {
|
||||
if(QMessageBox::warning(this,tr("Remote Error"),
|
||||
if(QMessageBox::warning(this,"RDCastManager - "+tr("Remote Error"),
|
||||
tr("Unable to delete remote audio!\n")+
|
||||
tr("The server said: \"")+err_text+"\".\n\n"+
|
||||
tr("Continue deleting cast?"),
|
||||
@@ -324,6 +326,13 @@ void ListCasts::deleteData()
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
if(!list_feed->audienceMetrics()) {
|
||||
if(!list_feed->postXml(&err_text)) {
|
||||
QMessageBox::warning(this,"RDCastManager - "+tr("Remote Error"),
|
||||
tr("Unable to update remote XML data!\n")+
|
||||
tr("The server said: \"")+err_text+"\".");
|
||||
}
|
||||
}
|
||||
RDDeleteCastCount(list_feed_id,item->id());
|
||||
|
||||
pd->reset();
|
||||
|
||||
@@ -292,6 +292,11 @@ Podcast trotzdem löschen?</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
@@ -281,6 +281,11 @@ Podcast trotzdem löschen?</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
@@ -232,6 +232,11 @@ Suscripción</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
@@ -227,6 +227,11 @@ Car&t/Cut</source>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
@@ -280,6 +280,11 @@ Vil du halda fram med å sletta podkasten?</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
@@ -280,6 +280,11 @@ Vil du halda fram med å sletta podkasten?</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
@@ -246,6 +246,11 @@ Continuar deletando cast?</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unable to update remote XML data!
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWidget</name>
|
||||
|
||||
Reference in New Issue
Block a user