Skip to content

Commit

Permalink
Merge pull request #204 from j0k3r/cleanup
Browse files Browse the repository at this point in the history
Some fixes & cleanup
  • Loading branch information
j0k3r authored May 22, 2019
2 parents 6276bec + d3aed37 commit e09fa58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UPGRADE-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Graby 1 was hardly tied to Guzzle 5.

Graby 2 supports any [HTTP client implementation](https://packagist.org/providers/php-http/client-implementation). It is currently tested against:

- Guzzle 6,
- Guzzle 5 &
- Guzzle 6
- Guzzle 5
- cURL

Here is how to install Graby with Guzzle 6:
Expand Down
2 changes: 1 addition & 1 deletion src/Extractor/ContentExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ private function extractBody($detectBody, $xpathExpression, \DOMNode $node = nul
$this->body = $elems->item(0);

// prune (clean up elements that may not be content)
if ($this->siteConfig->prune()) {
if ($this->siteConfig->prune() && null !== $this->readability) {
$this->logger->info('Pruning content');
$this->readability->prepArticle($this->body);
}
Expand Down

0 comments on commit e09fa58

Please sign in to comment.