Skip to content

Commit

Permalink
[NPRBridge] Add missing tag and remove extra HTML elements (#4227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantop authored Aug 21, 2024
1 parent 06a8896 commit 4a3919c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/NPRBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ protected function parseItem(array $item)

// 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']);

Expand Down

0 comments on commit 4a3919c

Please sign in to comment.