/** * Gets the name of the serie episode. * * @param $path * * @return string */ private function getNameOfEpisode($path) { $response = $this->client->get($path, ['cookies' => $this->cookie]); $name = Parser::getNameOfEpisode($response->getBody()->getContents()); return Utils::parseEpisodeName($name); }
/** * Gets the name of the serie episode. * * @param $html * * @param $path * @return string */ private function getNameOfEpisode($html, $path) { $name = Parser::getNameOfEpisode($html, $path); return Utils::parseEpisodeName($name); }