Skip to content

Commit

Permalink
Add long description to TED scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Apr 19, 2024
1 parent b400794 commit 13e0074
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/ted.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from common.schemas.fields import (
validate_output,
validate_zim_description,
validate_zim_longdescription,
validate_zim_filename,
)

Expand Down Expand Up @@ -123,6 +124,17 @@ class Meta:
validate=validate_zim_description,
)

long_description = String(
metadata={
"label": "Long description",
"description": (
"Custom long description for your ZIM. Based on selection otherwise"
),
},
data_key="long-description",
validate=validate_zim_longdescription,
)

creator = String(
metadata={
"label": "Content Creator",
Expand Down

0 comments on commit 13e0074

Please sign in to comment.