Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan committed Oct 12, 2023
1 parent 3aa92ff commit 5c0b096
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridges/CssSelectorFeedExpanderBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public function collectData()
$discard_thumbnail = $this->getInput('discard_thumbnail');
$limit = $this->getInput('limit');

//$xmlString = getContents($url);
//$feed = (new FeedParser())->parseFeed($xmlString);
//$items = $feed['items'];

$feed_expander = new CssSelectorFeedExpanderBridgeInternal();
$items = $feed_expander->collectExpandableDatas($url)->getItems();

Expand Down
1 change: 1 addition & 0 deletions lib/FeedExpander.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function collectExpandableDatas(string $url, $maxItems = -1)
// Restore previous behaviour in case other code relies on it being off
libxml_use_internal_errors(false);

// Currently only feed metadata (not items) are plucked out
$this->parsedFeed = $this->feedParser->parseFeed($xmlString);

if (isset($xml->item[0])) {
Expand Down

0 comments on commit 5c0b096

Please sign in to comment.