mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 17:39:16 +02:00
string from URF-8 encoded files have not the "unicode" type
This commit is contained in:
parent
8d8898aa55
commit
f66ba6cc21
2 changed files with 5 additions and 4 deletions
|
@ -98,7 +98,8 @@ Options:
|
||||||
--disable-comments Disable comments (Peertube only as YT API does not support) (default: comments are enabled)
|
--disable-comments Disable comments (Peertube only as YT API does not support) (default: comments are enabled)
|
||||||
--nsfw Set the video as No Safe For Work (Peertube only as YT API does not support) (default: video is safe)
|
--nsfw Set the video as No Safe For Work (Peertube only as YT API does not support) (default: video is safe)
|
||||||
--nfo=STRING Configure a specific nfo file to set options for the video.
|
--nfo=STRING Configure a specific nfo file to set options for the video.
|
||||||
By default Prismedia search a .txt based on video name
|
By default Prismedia search a .txt based on the video name and will
|
||||||
|
decode the file as UTF-8 (so make sure your nfo file is UTF-8 encoded)
|
||||||
See nfo_example.txt for more details
|
See nfo_example.txt for more details
|
||||||
--platform=STRING List of platform(s) to upload to, comma separated.
|
--platform=STRING List of platform(s) to upload to, comma separated.
|
||||||
Supported platforms are youtube and peertube (default is both)
|
Supported platforms are youtube and peertube (default is both)
|
||||||
|
|
|
@ -167,17 +167,17 @@ if __name__ == '__main__':
|
||||||
schema = Schema({
|
schema = Schema({
|
||||||
'--file': And(str, validateVideo, error='file is not supported, please use mp4'),
|
'--file': And(str, validateVideo, error='file is not supported, please use mp4'),
|
||||||
Optional('--name'): Or(None, And(
|
Optional('--name'): Or(None, And(
|
||||||
unicode,
|
basestring,
|
||||||
lambda x: not x.isdigit(),
|
lambda x: not x.isdigit(),
|
||||||
error="The video name should be a string")
|
error="The video name should be a string")
|
||||||
),
|
),
|
||||||
Optional('--description'): Or(None, And(
|
Optional('--description'): Or(None, And(
|
||||||
unicode,
|
basestring,
|
||||||
lambda x: not x.isdigit(),
|
lambda x: not x.isdigit(),
|
||||||
error="The video description should be a string")
|
error="The video description should be a string")
|
||||||
),
|
),
|
||||||
Optional('--tags'): Or(None, And(
|
Optional('--tags'): Or(None, And(
|
||||||
unicode,
|
basestring,
|
||||||
lambda x: not x.isdigit(),
|
lambda x: not x.isdigit(),
|
||||||
error="Tags should be a string")
|
error="Tags should be a string")
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue