]> git.localhorst.tv Git - alttp.git/commitdiff
ignore "invalid" html in pilot spoiler schedule
authorDaniel Karbach <holy@localhorst.tv>
Sun, 4 Jan 2026 22:59:15 +0000 (23:59 +0100)
committerDaniel Karbach <holy@localhorst.tv>
Sun, 4 Jan 2026 22:59:15 +0000 (23:59 +0100)
app/Console/Commands/SyncPilotSpoiler.php

index 359414f79597a17b392fc8b60da3f65f72f59b01..76a24d630dd5ef451d313a2f1bd88d8edf4fa614 100644 (file)
@@ -47,7 +47,9 @@ class SyncPilotSpoiler extends Command {
 
                $html = Http::get('https://docs.google.com/spreadsheets/d/1xuZggJsTT-USjgZjpI1qW07XIs1uXGToGj7AHY5Xh0A/edit?gid=1433653457')->body();
                $dom = new \DOMDocument();
+               libxml_use_internal_errors(true);
                $dom->loadHTML($html);
+               libxml_use_internal_errors(false);
                $rows = $dom->getElementsByTagName('tr');
                $schedule = [];
                foreach ($rows as $row) {