Scripting your way to upload videos to peertube and youtube. Works only with Python 2 so far.
Scripting your way to upload videos to peertube and youtube. Works with Python 2.7 and 3.3+.
## Dependencies
@ -15,15 +15,15 @@ Search in your system package manager, otherwise use ``pip install --upgrade`` f
- python-magic-bin
- requests-toolbelt
- tzlocal
- configparser
- future
Otherwise, you can use the requirements file with `pip install -r requirements.txt`. (*note:* requirements are generated via `poetry export -f requirements.txt`)
Otherwise, you can use [pyenv](https://github.com/pyenv/pyenv) and [poetry](https://poetry.eustace.io/):
Otherwise, you can use [poetry](https://poetry.eustace.io/):
```
pyenv install # installs the python version specified in .python-version
pyenv shell # activates the python version for the session
poetry install # installs the dependency in a virtualenv specific to the project
poetry install # installs the dependency in the current virtualenv, or creates one specific to the project if no virtualenv is currently active
```
## Configuration
@ -72,26 +72,26 @@ Supports only mp4 for cross compatibility between Youtube and Peertube.
Simply upload a video:
```
python -m prismedia.upload --file="yourvideo.mp4"
python -m prismedia --file="yourvideo.mp4"
```
Specify description and tags:
```
python -m prismedia.upload --file="yourvideo.mp4" -d "My supa description" -t "tag1,tag2,foo"
python -m prismedia --file="yourvideo.mp4" -d "My supa description" -t "tag1,tag2,foo"
```
Provide a thumbnail:
```
python -m prismedia.upload --file="yourvideo.mp4" -d "Video with thumbnail" --thumbnail="/path/to/your/thumbnail.jpg"
python -m prismedia --file="yourvideo.mp4" -d "Video with thumbnail" --thumbnail="/path/to/your/thumbnail.jpg"