diff --git a/database/seeders/ContentLibrarySeeder.php b/database/seeders/ContentLibrarySeeder.php index 4dffb2c9..984e3e02 100644 --- a/database/seeders/ContentLibrarySeeder.php +++ b/database/seeders/ContentLibrarySeeder.php @@ -42,7 +42,7 @@ private function downloadAndSeed($lib, $addContent = false) $h5p_upgrade_only = false; if ($this->hh5pService->getValidator()->isValidPackage($skipContent, $h5p_upgrade_only)) { - $content['title'] = $lib; + $this->hh5pService->getRepository()->setMainData($this->hh5pService->getCore()->mainJsonData); $this->hh5pService->getStorage()->savePackage($content, null, $skipContent); } else { echo "Invalid package $filename \n"; @@ -64,8 +64,6 @@ public function run(HeadlessH5PServiceContract $hh5pService) $this->hh5pService = $hh5pService; $libs = [ - // TODO this is not working (after removing title attributes from model - /* "example-content-arts-of-europe-443085.h5p", "advanced-blanks-example-1-503253.h5p", "course-presentation-21-21180.h5p", @@ -113,7 +111,6 @@ public function run(HeadlessH5PServiceContract $hh5pService) "agamotto-80158.h5p", "advent-blue-snowman-1075566.h5p", "accordion-6-7138.h5p" - */ ]; foreach ($libs as $lib) {