Browse Source

The strings arguments should be in unicode

develop^2
Zykino 5 years ago
parent
commit
8d8898aa55
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      prismedia_upload.py

+ 3
- 3
prismedia_upload.py View File

@ -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…
Cancel
Save