From 60f5d0d1506c33371c8b627996b27e6fcba28300 Mon Sep 17 00:00:00 2001 From: Irfan Date: Sun, 20 Aug 2023 19:39:04 +0500 Subject: [PATCH] fixes #529 --- src/Parser/Producer/ProducerParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser/Producer/ProducerParser.php b/src/Parser/Producer/ProducerParser.php index a8b6e40d..91b9c8f2 100644 --- a/src/Parser/Producer/ProducerParser.php +++ b/src/Parser/Producer/ProducerParser.php @@ -65,9 +65,9 @@ function (Crawler $animeCrawler) { */ public function getUrl(): Model\Common\MalUrl { - $title = $this->crawler->filterXPath('//*[@id="contentWrapper"]/div[1]/h1'); + $title = $this->crawler->filterXPath('//*[@class="title-name"]'); return new Model\Common\MalUrl( - $title->text(), + JString::cleanse($title->text()), $this->crawler->filterXPath('//meta[@property="og:url"]')->attr('content') ); }