diff --git a/dispatcher/backend/src/common/schemas/offliners/ted.py b/dispatcher/backend/src/common/schemas/offliners/ted.py index c90ac05b..7bc17ef6 100644 --- a/dispatcher/backend/src/common/schemas/offliners/ted.py +++ b/dispatcher/backend/src/common/schemas/offliners/ted.py @@ -1,6 +1,6 @@ from marshmallow import fields, validate -from common.schemas import SerializableSchema, String, StringEnum +from common.schemas import LongString, SerializableSchema, String, StringEnum from common.schemas.fields import ( validate_output, validate_zim_description, @@ -124,7 +124,7 @@ class Meta: validate=validate_zim_description, ) - long_description = String( + long_description = LongString( metadata={ "label": "Long description", "description": ( diff --git a/dispatcher/backend/src/common/schemas/offliners/youtube.py b/dispatcher/backend/src/common/schemas/offliners/youtube.py index 83002c55..41aa48ea 100644 --- a/dispatcher/backend/src/common/schemas/offliners/youtube.py +++ b/dispatcher/backend/src/common/schemas/offliners/youtube.py @@ -1,10 +1,11 @@ from marshmallow import ValidationError, fields, validate, validates_schema -from common.schemas import HexColor, SerializableSchema, String, StringEnum +from common.schemas import HexColor, LongString, SerializableSchema, String, StringEnum from common.schemas.fields import ( validate_output, validate_zim_description, validate_zim_filename, + validate_zim_longdescription, ) @@ -101,11 +102,20 @@ class Meta: description = String( metadata={ "label": "ZIM Description", - "description": "Single mode: Description for ZIM", + "description": "Single mode: Description (up to 80 chars) for ZIM", }, validate=validate_zim_description, ) + long_description = LongString( + metadata={ + "label": "ZIM Long Description", + "description": "Single mode: Long description (up to 4000 chars) for ZIM", + }, + data_key="long-description", + validate=validate_zim_longdescription, + ) + playlists_name = String( metadata={ "label": "Playlists ZIM Name",