Examples and Downloads not downloading libraries?

papi Jo's picture

I've just found out that downloading an H5P content from the Examples and Downloads page on this site (by clicking the Reuse button) only dowloads that H5P content and its assets (images, etc). The downloaded H5P file does NOT contain any library.

Is that a bug? or a new policy? How does one install H5P libraries now?

BV52's picture

Hi papi Jo,

This is a way to help lessen the load of H5P.org. Luckily, Oliver has provided a page were we can download the contents: https://codepen.io/otacke/pen/xbxYMZK

-BV

papi Jo's picture

Thanks for the explanation, BV. May I suggest that the link to Oliver's codepen.io should be made prominently displayed on the Examples and Downloads page (if Oliver agrees, of course) together with a short explanation?

otacke's picture

I don't mind.

However, I don't know whether it's really important to put that link somewhere prominently.

Content files do not necessarily have to contain the libraries. It's just good if they do. You're not supposed to have to install the regular content types by installing the demo contents. That's merely a side-effect that was possible before. The normal way is to use the H5P Hub, either manually via the H5P Hub client or programatically via Moodle's cron job or a simlar mechanism that you can come up with on other platforms - for instance like what I did in JavaScript or the equivalent with curl on PHP, or ...