added additional setup description
This commit is contained in:
parent
6390a1bef4
commit
78d2ecad37
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
Automatically rotate youtube thumbnails, if you're not VIP enough for youtube to grant you the ability.
|
||||
|
||||
## Prerequisite
|
||||
You need a GCP Account, create a new project, create a OAuth 2.0-Client for a Desktop Application, this will give you the `client_id`, `project_id` and `client_secret` which you need to insert into `app/secrets.json`.
|
||||
|
||||
## Setup and Usage
|
||||
|
||||
Start with running the script once manually, to setup your login information and install dependencies:
|
||||
|
|
@ -25,6 +28,6 @@ Create a Cronjob to periodically update your thumbnail
|
|||
|
||||
crontab -e
|
||||
# change the paths and variables and insert this line:
|
||||
1 * * * * * * source /path/to/project/venv/bin/activate && python /path/to/project/app/main.py <video_id> <path_to_video_thumbnails>
|
||||
1 * * * * * * source </path/to/project>/venv/bin/activate && python </path/to/project>/app/main.py <video_id> <path_to_video_thumbnails>
|
||||
|
||||
This example updates the thumbnail once an hour for the provided video for ever.
|
||||
|
|
|
|||
Loading…
Reference in New Issue