added additional setup description

This commit is contained in:
Askill 2024-03-03 12:07:58 +01:00
parent 6390a1bef4
commit 78d2ecad37
1 changed files with 4 additions and 1 deletions

View File

@ -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.