aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Arnav Jain <ajain-93@users.noreply.github.com> 2023-06-30 15:50:54 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-30 15:50:54 +0200
commitfece9ed344a229a43f20b5288959241e64f31871 (patch)
tree1e657e25bf5727575f57db6809357394974769ef
parentb6a263037a52d54f47a5d58ee4c43a8178b71876 (diff)
downloadrss-bridge-fece9ed344a229a43f20b5288959241e64f31871.tar.gz
rss-bridge-fece9ed344a229a43f20b5288959241e64f31871.tar.zst
rss-bridge-fece9ed344a229a43f20b5288959241e64f31871.zip
[NotAlwaysBridge] Add new categories, remove duplicate header, and social meta (#3463)
* [NotAlwaysBridge] add new tags * [NotAlwaysBridge] Remove duplicate header and social meta * [NotAlwaysBridge] Add space to fix lint issues
-rw-r--r--bridges/NotAlwaysBridge.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/bridges/NotAlwaysBridge.php b/bridges/NotAlwaysBridge.php
index 49b6f663..6f1a8c00 100644
--- a/bridges/NotAlwaysBridge.php
+++ b/bridges/NotAlwaysBridge.php
@@ -19,8 +19,10 @@ class NotAlwaysBridge extends BridgeAbstract
'Romantic' => 'romantic',
'Related' => 'related',
'Learning' => 'learning',
- 'Friendly' => 'friendly',
'Hopeless' => 'hopeless',
+ 'Healthy' => 'healthy',
+ 'Legal' => 'legal',
+ 'Friendly' => 'friendly',
'Unfiltered' => 'unfiltered'
]
]
@@ -38,7 +40,9 @@ class NotAlwaysBridge extends BridgeAbstract
#print_r($post);
$item = [];
$item['uri'] = $post->find('h1', 0)->find('a', 0)->href;
- $item['content'] = $post;
+ $postHeader = $post->find('.post_header', 0);
+ $storyContent = $post->find('.storycontent', 0);
+ $item['content'] = $postHeader . '<br/><br/>' . $storyContent;
$item['title'] = $post->find('h1', 0)->find('a', 0)->innertext;
$this->items[] = $item;
}