Skip to content

Commit 361795c

Browse files
committed
Update offliner flags for Youtube 3.2.0
1 parent 8f81caf commit 361795c

File tree

1 file changed

+7
-7
lines changed
  • dispatcher/backend/src/common/schemas/offliners

1 file changed

+7
-7
lines changed

dispatcher/backend/src/common/schemas/offliners/youtube.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from marshmallow import fields, validate
2-
31
from common.schemas import HexColor, LongString, SerializableSchema, String, StringEnum
42
from common.schemas.fields import (
53
validate_output,
@@ -8,6 +6,7 @@
86
validate_zim_longdescription,
97
validate_zim_title,
108
)
9+
from marshmallow import fields, validate
1110

1211

1312
class YoutubeFlagsSchema(SerializableSchema):
@@ -37,9 +36,9 @@ class Meta:
3736
ident = String(
3837
metadata={
3938
"label": "Youtube ID(s)",
40-
"description": "Youtube ID(s) of the user, channel or playlist(s) to ZIM "
41-
"(depending on the Type chosen below). Only playlist Type support multiple "
42-
"Youtube IDs and they must be separated by commas.",
39+
"description": "Youtube ID(s) of the handle, channel, user, or playlist(s) "
40+
"to ZIM (depending on the Type chosen below). Only playlist Type support "
41+
"multiple Youtube IDs and they must be separated by commas.",
4342
},
4443
data_key="id",
4544
required=True,
@@ -48,9 +47,10 @@ class Meta:
4847
kind = StringEnum(
4948
metadata={
5049
"label": "Type",
51-
"description": "Type of Youtube ID.",
50+
"description": "Type of Youtube ID. Use channel for handle, channel or "
51+
"user.",
5252
},
53-
validate=validate.OneOf(["channel", "playlist", "user"]),
53+
validate=validate.OneOf(["channel", "playlist"]),
5454
data_key="type",
5555
required=True,
5656
)

0 commit comments

Comments
 (0)