1
- from marshmallow import fields , validate
2
-
3
1
from common .schemas import HexColor , LongString , SerializableSchema , String , StringEnum
4
2
from common .schemas .fields import (
5
3
validate_output ,
8
6
validate_zim_longdescription ,
9
7
validate_zim_title ,
10
8
)
9
+ from marshmallow import fields , validate
11
10
12
11
13
12
class YoutubeFlagsSchema (SerializableSchema ):
@@ -37,9 +36,9 @@ class Meta:
37
36
ident = String (
38
37
metadata = {
39
38
"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." ,
43
42
},
44
43
data_key = "id" ,
45
44
required = True ,
@@ -48,9 +47,10 @@ class Meta:
48
47
kind = StringEnum (
49
48
metadata = {
50
49
"label" : "Type" ,
51
- "description" : "Type of Youtube ID." ,
50
+ "description" : "Type of Youtube ID. Use channel for handle, channel or "
51
+ "user." ,
52
52
},
53
- validate = validate .OneOf (["channel" , "playlist" , "user" ]),
53
+ validate = validate .OneOf (["channel" , "playlist" ]),
54
54
data_key = "type" ,
55
55
required = True ,
56
56
)
0 commit comments