[GBAtemp] Fix tutorial mode Title extraction

This commit is contained in:
ORelio 2020-08-07 15:19:14 +02:00
parent f0e6298cab
commit c642652fea

View file

@ -114,7 +114,7 @@ class GBAtempBridge extends BridgeAbstract {
case 'T': case 'T':
foreach($html->find('li.portal-tutorial') as $tutorialItem) { foreach($html->find('li.portal-tutorial') as $tutorialItem) {
$url = self::URI . $tutorialItem->find('a', 1)->href; $url = self::URI . $tutorialItem->find('a', 1)->href;
$title = $tutorialItem->find('a', 0)->plaintext; $title = $tutorialItem->find('a', 1)->plaintext;
$time = $this->findItemDate($tutorialItem); $time = $this->findItemDate($tutorialItem);
$author = $tutorialItem->find('a.username', 0)->plaintext; $author = $tutorialItem->find('a.username', 0)->plaintext;
$content = $this->fetchPostContent($url, self::URI); $content = $this->fetchPostContent($url, self::URI);