Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IMS Content Package support to the HTML5 Viewer #11436

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions kolibri/core/content/migrations/0035_add_imscp_preset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2023-10-20 07:03
from __future__ import unicode_literals

from django.db import migrations
from django.db import models


class Migration(migrations.Migration):

dependencies = [
("content", "0034_contentrequest_source_instance_id"),
]

operations = [
migrations.AlterField(
model_name="file",
name="preset",
field=models.CharField(
blank=True,
choices=[
("high_res_video", "High Resolution"),
("low_res_video", "Low Resolution"),
("video_thumbnail", "Thumbnail"),
("video_subtitle", "Subtitle"),
("video_dependency", "Video (dependency)"),
("audio", "Audio"),
("audio_thumbnail", "Thumbnail"),
("audio_dependency", "audio (dependency)"),
("document", "Document"),
("epub", "ePub Document"),
("document_thumbnail", "Thumbnail"),
("exercise", "Exercise"),
("exercise_thumbnail", "Thumbnail"),
("exercise_image", "Exercise Image"),
("exercise_graphie", "Exercise Graphie"),
("channel_thumbnail", "Channel Thumbnail"),
("topic_thumbnail", "Thumbnail"),
("html5_zip", "HTML5 Zip"),
("html5_dependency", "HTML5 Dependency (Zip format)"),
("html5_thumbnail", "HTML5 Thumbnail"),
("h5p", "H5P Zip"),
("h5p_thumbnail", "H5P Thumbnail"),
("zim", "Zim"),
("zim_thumbnail", "Zim Thumbnail"),
("qti", "QTI Zip"),
("qti_thumbnail", "QTI Thumbnail"),
("slideshow_image", "Slideshow Image"),
("slideshow_thumbnail", "Slideshow Thumbnail"),
("slideshow_manifest", "Slideshow Manifest"),
("imscp_zip", "IMSCP Zip"),
],
max_length=150,
),
),
]
6 changes: 5 additions & 1 deletion kolibri/plugins/html5_viewer/kolibri_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ class HTML5AppPlugin(KolibriPluginBase):
@register_hook
class HTML5AppAsset(content_hooks.ContentRendererHook):
bundle_id = "main"
presets = (format_presets.HTML5_ZIP, format_presets.H5P_ZIP)
presets = (
format_presets.HTML5_ZIP,
format_presets.H5P_ZIP,
format_presets.IMSCP_ZIP,
)
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cheroot==8.6.0
magicbus==4.1.2
futures==3.1.1 # Temporarily pinning this until we can do a Python 2/3 compatible solution of newer versions # pyup: <=3.1.1
more-itertools==5.0.0 # Last Python 2.7 friendly release # pyup: <6.0
le-utils==0.2.1
le-utils==0.2.2
jsonfield==2.0.2
requests-toolbelt==0.9.1
morango==0.6.18
Expand Down
Loading