mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-29 07:05:39 +02:00
ArsTechnicaBridge: restore categories lost by FeedExpander (#4030)
This commit is contained in:
parent
6e2aeda61d
commit
b785a4b64e
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ class ArsTechnicaBridge extends FeedExpander
|
||||||
$item_html = defaultLinkTo($item_html, self::URI);
|
$item_html = defaultLinkTo($item_html, self::URI);
|
||||||
$item['content'] = $item_html->find('.article-content', 0);
|
$item['content'] = $item_html->find('.article-content', 0);
|
||||||
|
|
||||||
|
$parsely = $item_html->find('[name="parsely-page"]', 0);
|
||||||
|
$parsely_json = json_decode(html_entity_decode($parsely->content), true);
|
||||||
|
$item['categories'] = $parsely_json['tags'];
|
||||||
|
|
||||||
$pages = $item_html->find('nav.page-numbers > .numbers > a', -2);
|
$pages = $item_html->find('nav.page-numbers > .numbers > a', -2);
|
||||||
if (null !== $pages) {
|
if (null !== $pages) {
|
||||||
for ($i = 2; $i <= $pages->innertext; $i++) {
|
for ($i = 2; $i <= $pages->innertext; $i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue