Skip to content
Snippets Groups Projects
Commit d956df31 authored by Laurent's avatar Laurent
Browse files

hotline#61844 fix test (call specific xml parser for nanook)

parent 1b995a7f
Branches
Tags
3 merge requests!2334Master,!2241Stable,!2235Hotline#61844 encore des problemes sur la vod
Pipeline #1886 passed with stage
in 14 minutes and 18 seconds
......@@ -50,6 +50,19 @@ class Class_WebService_BibNumerique_ArteVOD_Film extends Class_WebService_BibNu
->addDuration($json['duration']);
}
public function findAlbumInDB() {
if ($album = parent::findAlbumInDB())
return $album;
$albums = Class_Album::findAllBy(['url_origine' => $this->getBaseUrl(),
'titre' => $this->getTitle()]);
if (empty($albums))
return [];
if (count($albums)==1)
return current($albums);
}
protected function setDirectors($directors) {
$this->_directors = $directors;
......
......@@ -39,7 +39,7 @@ class Class_WebService_SIGB_Nanook_PatronInfoReader extends Class_WebService_SIG
protected function _newXMLParser() {
return Class_WebService_XMLParser::newInstance();
return Class_WebService_SIGB_Nanook_XMLParser::newInstance();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment