mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-07 07:57:44 +02:00
2023-05-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'Validate with Bluebrry' item to the right-click menu to items in the 'List Feeds' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
4fba23bb42
commit
1e73e29028
@ -24061,3 +24061,6 @@
|
||||
missing items.
|
||||
* Modified the feed report in rdcastmanager to include information
|
||||
on missing items.
|
||||
2023-05-07 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a 'Validate with Bluebrry' item to the right-click menu
|
||||
to items in the 'List Feeds' dialog in rdadmin(1).
|
||||
|
@ -44,6 +44,9 @@ FeedListView::FeedListView(QWidget *parent)
|
||||
d_back_item_report_action=d_mouse_menu->
|
||||
addAction(tr("Generate Item Report [Back]"),this,SLOT(generateBackItemReportData()));
|
||||
d_back_item_report_action->setCheckable(false);
|
||||
d_mouse_menu->addSeparator();
|
||||
d_bluebrry_validate_action=d_mouse_menu->
|
||||
addAction(tr("Validate with Bluebrry"),this,SLOT(validateBluebrryData()));
|
||||
|
||||
connect(d_mouse_menu,SIGNAL(aboutToShow()),
|
||||
this,SLOT(aboutToShowMenuData()));
|
||||
@ -100,6 +103,7 @@ void FeedListView::generateFrontItemReportData()
|
||||
tr("Error accessing from XML data.")+"\n"+
|
||||
"["+err_msg+"]");
|
||||
}
|
||||
delete feed;
|
||||
}
|
||||
|
||||
|
||||
@ -130,6 +134,20 @@ void FeedListView::generateBackItemReportData()
|
||||
tr("Error accessing from XML data.")+"\n"+
|
||||
"["+err_msg+"]");
|
||||
}
|
||||
delete feed;
|
||||
}
|
||||
|
||||
|
||||
void FeedListView::validateBluebrryData()
|
||||
{
|
||||
RDFeedListModel *m=(RDFeedListModel *)model();
|
||||
QString keyname=m->data(m->index(d_mouse_row,0)).toString();
|
||||
RDFeed *feed=new RDFeed(keyname,rda->config(),this);
|
||||
|
||||
QString url=QString("https://www.castfeedvalidator.com/validate.php?url=")+
|
||||
feed->publicUrl(feed->baseUrl(""),feed->keyName());
|
||||
RDWebBrowser(url);
|
||||
delete feed;
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,6 +41,7 @@ class FeedListView : public RDTableView
|
||||
void aboutToShowMenuData();
|
||||
void generateFrontItemReportData();
|
||||
void generateBackItemReportData();
|
||||
void validateBluebrryData();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
@ -50,6 +51,7 @@ class FeedListView : public RDTableView
|
||||
QMenu *d_mouse_menu;
|
||||
QAction *d_front_item_report_action;
|
||||
QAction *d_back_item_report_action;
|
||||
QAction *d_bluebrry_validate_action;
|
||||
QList<RDXsltEngine *> d_xslt_engines;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user