[NasaApodBridge] Fix header being parsed as item (#1586)

This commit is contained in:
Corentin Garcia 2020-10-07 08:16:26 +02:00 committed by GitHub
parent d3455dd18a
commit fe166d0216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ class NasaApodBridge extends BridgeAbstract {
$list = explode('<br>', $html->find('b', 0)->innertext);
for($i = 0; $i < 3; $i++) {
$line = $list[$i];
// Start at 1 to skip the "APOD Full Archive" on top of the page
for($i = 1; $i < 4; $i++) {
$item = array();
$uri_page = $html->find('a', $i + 3)->href;