Skip to content

Commit

Permalink
Fix Title::plot() #127
Browse files Browse the repository at this point in the history
Return only real content.
  • Loading branch information
jreklund committed Jun 9, 2018
1 parent 5274b4e commit c3d60d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Imdb/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ public function plot() {
$doc = new \DOMDocument();
@$doc->loadHTML($page);
$xp = new \DOMXPath($doc);
$cells = $xp->query("//ul[@id=\"plot-summaries-content\"]/li");
$cells = $xp->query("//ul[@id=\"plot-summaries-content\"]/li[@id!=\"no-summary-content\"]");
foreach ($cells as $cell) {
$link = '';
if($a = $cell->getElementsByTagName('a')->item(0)) {
Expand Down

0 comments on commit c3d60d5

Please sign in to comment.