From fe166d0216683754e85d32f48cd78a2ac4b8a7e3 Mon Sep 17 00:00:00 2001 From: Corentin Garcia Date: Wed, 7 Oct 2020 08:16:26 +0200 Subject: [PATCH] [NasaApodBridge] Fix header being parsed as item (#1586) --- bridges/NasaApodBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/NasaApodBridge.php b/bridges/NasaApodBridge.php index 8e293e0f..e5893dbc 100644 --- a/bridges/NasaApodBridge.php +++ b/bridges/NasaApodBridge.php @@ -14,8 +14,8 @@ class NasaApodBridge extends BridgeAbstract { $list = explode('
', $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;