mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-05 02:09:26 +02:00
Update changelog, help and readme to finish the python3 feature
This commit is contained in:
parent
2a624e1d9b
commit
1e72033846
4 changed files with 16 additions and 15 deletions
|
@ -3,12 +3,13 @@
|
||||||
## vX.X.X
|
## vX.X.X
|
||||||
|
|
||||||
### Breaking changes
|
### Breaking changes
|
||||||
Now work with python 3! support of python 2 is no longer available.
|
Now work with python 3! Support of python 2 is no longer available.
|
||||||
You should now use python 3 in order to use prismedia
|
You should now use python 3 in order to use prismedia
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
Added a requirements.txt file to make installing requirement easier.
|
- Add a requirements.txt file to make installing requirement easier.
|
||||||
|
- Add a debug option to show some infos before uploading (thanks to @zykino)
|
||||||
|
- Now uploading to Peertube before Youtube (thanks to @zykino)
|
||||||
|
|
||||||
## v0.7.1
|
## v0.7.1
|
||||||
|
|
||||||
|
|
14
README.md
14
README.md
|
@ -1,6 +1,6 @@
|
||||||
# Prismedia
|
# Prismedia
|
||||||
|
|
||||||
A scripting way to upload videos to Peertube and Youtube written in python3.
|
Scripting your way to upload videos to peertube and youtube. Works with Python 3.5+.
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
Search in your package manager, or with `pip` use ``pip install -r requirements.txt``
|
Search in your package manager, or with `pip` use ``pip install -r requirements.txt``
|
||||||
|
@ -14,7 +14,7 @@ Search in your package manager, or with `pip` use ``pip install -r requirements.
|
||||||
- httplib2
|
- httplib2
|
||||||
- oauthlib
|
- oauthlib
|
||||||
- python-magic
|
- python-magic
|
||||||
- python-magic-bin
|
- python-magic-bin (Windows only)
|
||||||
- requests
|
- requests
|
||||||
- requests-oauthlib
|
- requests-oauthlib
|
||||||
- requests-toolbelt
|
- requests-toolbelt
|
||||||
|
@ -92,11 +92,11 @@ Use --help to get all available options:
|
||||||
Options:
|
Options:
|
||||||
-f, --file=STRING Path to the video file to upload in mp4
|
-f, --file=STRING Path to the video file to upload in mp4
|
||||||
--name=NAME Name of the video to upload. (default to video filename)
|
--name=NAME Name of the video to upload. (default to video filename)
|
||||||
|
--debug Trigger some debug information like options used (default: no)
|
||||||
-d, --description=STRING Description of the video. (default: default description)
|
-d, --description=STRING Description of the video. (default: default description)
|
||||||
-t, --tags=STRING Tags for the video. comma separated.
|
-t, --tags=STRING Tags for the video. comma separated.
|
||||||
WARN: tags with space and special characters (!, ', ", ?, ...)
|
WARN: tags with punctuation (!, ', ", ?, ...)
|
||||||
are not supported by Mastodon to be published from Peertube
|
are not supported by Mastodon to be published from Peertube
|
||||||
use mastodon compatibility below
|
|
||||||
-c, --category=STRING Category for the videos, see below. (default: Films)
|
-c, --category=STRING Category for the videos, see below. (default: Films)
|
||||||
--cca License should be CreativeCommon Attribution (affects Youtube upload only)
|
--cca License should be CreativeCommon Attribution (affects Youtube upload only)
|
||||||
-p, --privacy=STRING Choose between public, unlisted or private. (default: private)
|
-p, --privacy=STRING Choose between public, unlisted or private. (default: private)
|
||||||
|
@ -112,7 +112,6 @@ Options:
|
||||||
--publishAt=DATE Publish the video at the given DATE using local server timezone.
|
--publishAt=DATE Publish the video at the given DATE using local server timezone.
|
||||||
DATE should be on the form YYYY-MM-DDThh:mm:ss eg: 2018-03-12T19:00:00
|
DATE should be on the form YYYY-MM-DDThh:mm:ss eg: 2018-03-12T19:00:00
|
||||||
DATE should be in the future
|
DATE should be in the future
|
||||||
For Peertube, requires the "atd" and "curl utilities installed on the system
|
|
||||||
--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
|
||||||
|
@ -120,7 +119,7 @@ Options:
|
||||||
If the channel is not found, spawn an error except if --channelCreate is set.
|
If the channel is not found, spawn an error except if --channelCreate is set.
|
||||||
--channelCreate Create the channel if not exists. (Peertube only, default do not create)
|
--channelCreate Create the channel if not exists. (Peertube only, default do not create)
|
||||||
Only relevant if --channel is set.
|
Only relevant if --channel is set.
|
||||||
--playlist=STRING Set the playlist to use for the video. Also known as Channel for Peertube.
|
--playlist=STRING Set the playlist to use for the video.
|
||||||
If the playlist is not found, spawn an error except if --playlistCreate is set.
|
If the playlist is not found, spawn an error except if --playlistCreate is set.
|
||||||
--playlistCreate Create the playlist if not exists. (default do not create)
|
--playlistCreate Create the playlist if not exists. (default do not create)
|
||||||
Only relevant if --playlist is set.
|
Only relevant if --playlist is set.
|
||||||
|
@ -173,3 +172,6 @@ Languages:
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
inspired by [peeror](https://git.rigelk.eu/rigelk/peeror) and [youtube-upload](https://github.com/tokland/youtube-upload)
|
inspired by [peeror](https://git.rigelk.eu/rigelk/peeror) and [youtube-upload](https://github.com/tokland/youtube-upload)
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
Thanks to: @Zykino, @meewan, @rigelk 😘
|
|
@ -13,12 +13,11 @@ Usage:
|
||||||
Options:
|
Options:
|
||||||
-f, --file=STRING Path to the video file to upload in mp4
|
-f, --file=STRING Path to the video file to upload in mp4
|
||||||
--name=NAME Name of the video to upload. (default to video filename)
|
--name=NAME Name of the video to upload. (default to video filename)
|
||||||
--debug Show some debug informations like the option actually used (default: no debug info)
|
--debug Trigger some debug information like options used (default: no)
|
||||||
-d, --description=STRING Description of the video. (default: default description)
|
-d, --description=STRING Description of the video. (default: default description)
|
||||||
-t, --tags=STRING Tags for the video. comma separated.
|
-t, --tags=STRING Tags for the video. comma separated.
|
||||||
WARN: tags with space and special characters (!, ', ", ?, ...)
|
WARN: tags with punctuation (!, ', ", ?, ...)
|
||||||
are not supported by Mastodon to be published from Peertube
|
are not supported by Mastodon to be published from Peertube
|
||||||
use mastodon compatibility below
|
|
||||||
-c, --category=STRING Category for the videos, see below. (default: Films)
|
-c, --category=STRING Category for the videos, see below. (default: Films)
|
||||||
--cca License should be CreativeCommon Attribution (affects Youtube upload only)
|
--cca License should be CreativeCommon Attribution (affects Youtube upload only)
|
||||||
-p, --privacy=STRING Choose between public, unlisted or private. (default: private)
|
-p, --privacy=STRING Choose between public, unlisted or private. (default: private)
|
||||||
|
@ -34,7 +33,6 @@ Options:
|
||||||
--publishAt=DATE Publish the video at the given DATE using local server timezone.
|
--publishAt=DATE Publish the video at the given DATE using local server timezone.
|
||||||
DATE should be on the form YYYY-MM-DDThh:mm:ss eg: 2018-03-12T19:00:00
|
DATE should be on the form YYYY-MM-DDThh:mm:ss eg: 2018-03-12T19:00:00
|
||||||
DATE should be in the future
|
DATE should be in the future
|
||||||
For Peertube, requires the "atd" and "curl utilities installed on the system
|
|
||||||
--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
|
||||||
|
@ -42,7 +40,7 @@ Options:
|
||||||
If the channel is not found, spawn an error except if --channelCreate is set.
|
If the channel is not found, spawn an error except if --channelCreate is set.
|
||||||
--channelCreate Create the channel if not exists. (Peertube only, default do not create)
|
--channelCreate Create the channel if not exists. (Peertube only, default do not create)
|
||||||
Only relevant if --channel is set.
|
Only relevant if --channel is set.
|
||||||
--playlist=STRING Set the playlist to use for the video. Also known as Channel for Peertube.
|
--playlist=STRING Set the playlist to use for the video.
|
||||||
If the playlist is not found, spawn an error except if --playlistCreate is set.
|
If the playlist is not found, spawn an error except if --playlistCreate is set.
|
||||||
--playlistCreate Create the playlist if not exists. (default do not create)
|
--playlistCreate Create the playlist if not exists. (default do not create)
|
||||||
Only relevant if --playlist is set.
|
Only relevant if --playlist is set.
|
||||||
|
|
|
@ -8,7 +8,7 @@ google-auth-oauthlib
|
||||||
httplib2
|
httplib2
|
||||||
oauthlib
|
oauthlib
|
||||||
python-magic
|
python-magic
|
||||||
python-magic-bin
|
python-magic-bin; platform_system == "Windows"
|
||||||
requests
|
requests
|
||||||
requests-oauthlib
|
requests-oauthlib
|
||||||
requests-toolbelt
|
requests-toolbelt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue