Skip to content

Commit

Permalink
Adjust youtube offliner for v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jul 29, 2024
1 parent ebe4912 commit f012b41
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions dispatcher/backend/src/common/schemas/offliners/youtube.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from marshmallow import fields, validate

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,
)
from marshmallow import fields, validate


class YoutubeFlagsSchema(SerializableSchema):
Expand Down Expand Up @@ -123,20 +122,11 @@ class Meta:
tags = String(
metadata={
"label": "ZIM Tags",
"description": "List of Tags for the ZIM file. "
"description": "List of comma-separated Tags for the ZIM file. "
"_videos:yes added automatically",
}
)

locale = String(
metadata={
"label": "Locale",
"description": "Locale name to use for translations (if avail) "
"and time representations. Defaults to Language flag value or English if "
"flag is not set.",
}
)

dateafter = String(
metadata={
"label": "Only after date",
Expand Down Expand Up @@ -192,16 +182,6 @@ class Meta:
},
)

autoplay = fields.Boolean(
truthy=[True],
falsy=[False],
metadata={
"label": "Auto-play",
"description": "Enable autoplay on video articles "
"(home never have autoplay).",
},
)

profile = fields.Url(
metadata={
"label": "Profile Image",
Expand Down

0 comments on commit f012b41

Please sign in to comment.