Skip to content

Commit

Permalink
Bug fix - ensure the result url is populated even when there is no te…
Browse files Browse the repository at this point in the history
…xt retrieved.
  • Loading branch information
crscheid committed Feb 28, 2020
1 parent f054e39 commit fe41669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ArticleExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ public function processURL($url) {
$results = $this->parseViaGooseOrCustom($url);
}

// Add the resultant URL after redirects
$results['result_url'] = $url;

// If we still don't havewhat we want, return what we have
if ($results['text'] == null) {
$results['language'] = null;
Expand Down Expand Up @@ -127,9 +130,6 @@ public function processURL($url) {
}
}

// Show the resultant URL after redirects
$results['result_url'] = $url;

$this->log_debug("text: " . $results['text']);
$this->log_debug("title: " . $results['title']);
$this->log_debug("language: " . $results['language']);
Expand Down

0 comments on commit fe41669

Please sign in to comment.