mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 17:39:16 +02:00
Add option to manage playlist for videos
This commit is contained in:
parent
cb8ae77a10
commit
9efb18eb55
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,10 @@ Options:
|
||||||
--thumbnail=STRING Path to a file to use as a thumbnail for the video.
|
--thumbnail=STRING Path to a file to use as a thumbnail for the video.
|
||||||
Supported types are jpg and jpeg.
|
Supported types are jpg and jpeg.
|
||||||
By default, prismedia search for an image based on video name followed by .jpg or .jpeg
|
By default, prismedia search for an image based on video name followed by .jpg or .jpeg
|
||||||
|
--playlist=STRING Set the playlist to use for the video. Also known as Channel for Peertube.
|
||||||
|
If the playlist is not found, spawn an error except if --playlist-create is set.
|
||||||
|
--playlistCreate Create the playlist if not exists. (default do not create)
|
||||||
|
Only relevant if --playlist is set.
|
||||||
-h --help Show this help.
|
-h --help Show this help.
|
||||||
--version Show version.
|
--version Show version.
|
||||||
|
|
||||||
|
@ -211,6 +215,8 @@ if __name__ == '__main__':
|
||||||
Optional('--thumbnail'): Or(None, And(
|
Optional('--thumbnail'): Or(None, And(
|
||||||
str, validateThumbnail, error='thumbnail is not supported, please use jpg/jpeg'),
|
str, validateThumbnail, error='thumbnail is not supported, please use jpg/jpeg'),
|
||||||
),
|
),
|
||||||
|
Optional('--playlist'): Or(None, str),
|
||||||
|
Optional('--playlistCreate'): bool,
|
||||||
'--help': bool,
|
'--help': bool,
|
||||||
'--version': bool
|
'--version': bool
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue