mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[NextgovBridge] Update categories, fix missing element (#2316)
This commit is contained in:
parent
547829f971
commit
1c6532a9d0
@ -15,12 +15,10 @@ class NextgovBridge extends FeedExpander {
|
|||||||
'Technology News' => 'technology-news',
|
'Technology News' => 'technology-news',
|
||||||
'CIO Briefing' => 'cio-briefing',
|
'CIO Briefing' => 'cio-briefing',
|
||||||
'Emerging Tech' => 'emerging-tech',
|
'Emerging Tech' => 'emerging-tech',
|
||||||
'Cloud' => 'cloud-computing',
|
|
||||||
'Cybersecurity' => 'cybersecurity',
|
'Cybersecurity' => 'cybersecurity',
|
||||||
'Mobile' => 'mobile',
|
'IT Modernization' => 'it-modernization',
|
||||||
'Health' => 'health',
|
'Policy' => 'policy',
|
||||||
'Defense' => 'defense',
|
'Ideas' => 'ideas',
|
||||||
'Big Data' => 'big-data'
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
@ -61,7 +59,6 @@ class NextgovBridge extends FeedExpander {
|
|||||||
return 'Could not request Nextgov: ' . $url;
|
return 'Could not request Nextgov: ' . $url;
|
||||||
|
|
||||||
$contents = $article->find('div.wysiwyg', 0);
|
$contents = $article->find('div.wysiwyg', 0);
|
||||||
$contents->find('svg.content-tombstone', 0)->outertext = '';
|
|
||||||
$contents = $contents->innertext;
|
$contents = $contents->innertext;
|
||||||
$contents = stripWithDelimiters($contents, '<div class="ad-container">', '</div>');
|
$contents = stripWithDelimiters($contents, '<div class="ad-container">', '</div>');
|
||||||
$contents = stripWithDelimiters($contents, '<div', '</div>'); //ad outer div
|
$contents = stripWithDelimiters($contents, '<div', '</div>'); //ad outer div
|
||||||
|
Loading…
Reference in New Issue
Block a user