Skip to content

Commit

Permalink
endlesskey: Import all thumbnails for all channels
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmccall committed Dec 19, 2023
1 parent 651dd56 commit 4583308
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hooks/image/53-ek-content-preload
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ if [ -n "${EIB_KOLIBRI_CENTRAL_CONTENT_BASE_URL}" ]; then
export KOLIBRI_CENTRAL_CONTENT_BASE_URL
fi

# Import all channel metadata and thumbnails for all channels
for channel in $all_channels; do
kolibri manage --skip-update importchannel network "${channel}"
EIB_RETRY_ATTEMPTS=2 EIB_RETRY_INTERVAL=30 eib_retry \
kolibri manage --skip-update \
importcontent --include-unrenderable-content --fail-on-error \
--node_ids="" --all-thumbnails \
network "${channel}"
done

if [ "${EIB_ENDLESSKEY_INCLUDE_FULL_CHANNELS}" == true ]; then
Expand Down

0 comments on commit 4583308

Please sign in to comment.