mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-04 01:49:15 +02:00
Update files, functions and code to work with python3
This commit is contained in:
parent
8b26f0ee53
commit
fa633ee5bb
4 changed files with 32 additions and 30 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
|
@ -170,17 +170,17 @@ if __name__ == '__main__':
|
|||
schema = Schema({
|
||||
'--file': And(str, validateVideo, error='file is not supported, please use mp4'),
|
||||
Optional('--name'): Or(None, And(
|
||||
basestring,
|
||||
str,
|
||||
lambda x: not x.isdigit(),
|
||||
error="The video name should be a string")
|
||||
),
|
||||
Optional('--description'): Or(None, And(
|
||||
basestring,
|
||||
str,
|
||||
lambda x: not x.isdigit(),
|
||||
error="The video description should be a string")
|
||||
),
|
||||
Optional('--tags'): Or(None, And(
|
||||
basestring,
|
||||
str,
|
||||
lambda x: not x.isdigit(),
|
||||
error="Tags should be a string")
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue