mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 09:29:16 +02:00
The strings arguments should be in unicode
This commit is contained in:
parent
6c68c3363b
commit
8d8898aa55
1 changed files with 3 additions and 3 deletions
|
@ -167,17 +167,17 @@ if __name__ == '__main__':
|
|||
schema = Schema({
|
||||
'--file': And(str, validateVideo, error='file is not supported, please use mp4'),
|
||||
Optional('--name'): Or(None, And(
|
||||
str,
|
||||
unicode,
|
||||
lambda x: not x.isdigit(),
|
||||
error="The video name should be a string")
|
||||
),
|
||||
Optional('--description'): Or(None, And(
|
||||
str,
|
||||
unicode,
|
||||
lambda x: not x.isdigit(),
|
||||
error="The video description should be a string")
|
||||
),
|
||||
Optional('--tags'): Or(None, And(
|
||||
str,
|
||||
unicode,
|
||||
lambda x: not x.isdigit(),
|
||||
error="Tags should be a string")
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue