mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-21 17:15:25 +03:00
[NPRBridge] Add missing tag and remove extra HTML elements (#4227)
This commit is contained in:
parent
06a8896000
commit
4a3919c1a3
1 changed files with 2 additions and 2 deletions
|
@ -192,9 +192,9 @@ class NPRBridge extends FeedExpander
|
|||
|
||||
// get tags, program/series names
|
||||
$item['categories'] = [];
|
||||
$tags = '.tag, .program-block > a, .branding__title';
|
||||
$tags = '.tag, .program-block > a, .branding__title, article h3.slug';
|
||||
foreach ($html->find($tags) as $tag) {
|
||||
$item['categories'][] = $tag->innertext;
|
||||
$item['categories'][] = $tag->plaintext;
|
||||
}
|
||||
$item['categories'] = array_unique($item['categories']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue