mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-31 07:59:30 +02:00
2023-05-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that caused the 'View Raw XML [Front] report to use locally generated XML. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
c2f9bd52fb
commit
7b5a1d02aa
@ -24092,3 +24092,6 @@
|
|||||||
* Added 'View Raw XML [Front]' and 'View Raw XML [Back]' items to
|
* Added 'View Raw XML [Front]' and 'View Raw XML [Back]' items to
|
||||||
the right-click menu in the 'Rivendell Feed List' dialog in
|
the right-click menu in the 'Rivendell Feed List' dialog in
|
||||||
rdadmin(1).
|
rdadmin(1).
|
||||||
|
2023-05-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in rdadmin(1) that caused the 'View Raw XML [Front]
|
||||||
|
report to use locally generated XML.
|
||||||
|
@ -152,15 +152,14 @@ void FeedListView::generateBackItemReportData()
|
|||||||
void FeedListView::viewFrontRawXmlData()
|
void FeedListView::viewFrontRawXmlData()
|
||||||
{
|
{
|
||||||
QDateTime now=QDateTime::currentDateTime();
|
QDateTime now=QDateTime::currentDateTime();
|
||||||
bool ok=false;
|
|
||||||
QList<unsigned> front_ids;
|
QList<unsigned> front_ids;
|
||||||
QString err_msg;
|
QString err_msg;
|
||||||
RDFeedListModel *m=(RDFeedListModel *)model();
|
RDFeedListModel *m=(RDFeedListModel *)model();
|
||||||
QString keyname=m->data(m->index(d_mouse_row,0)).toString();
|
QString keyname=m->data(m->index(d_mouse_row,0)).toString();
|
||||||
RDFeed *feed=new RDFeed(keyname,rda->config(),this);
|
RDFeed *feed=new RDFeed(keyname,rda->config(),this);
|
||||||
|
QByteArray xml;
|
||||||
|
|
||||||
if(feed->frontActiveCasts(&front_ids,&err_msg)) {
|
if(feed->rssFrontXml(&xml,&err_msg)) {
|
||||||
QString xml=feed->rssXml(&err_msg,now,&ok,&front_ids);
|
|
||||||
RDTextFile(xml,true);
|
RDTextFile(xml,true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user