mirror of
https://framagit.org/veretcle/tootube.git
synced 2025-07-20 12:31:19 +02:00
✨: write back tokens to the config file
This commit is contained in:
16
README.md
16
README.md
@@ -1,6 +1,6 @@
|
||||
# What is it?
|
||||
|
||||
This program takes the very last video published on a PeerTube instance and pushes it to a corresponding YouTube channel.
|
||||
This program takes the very last or a specified video published on a PeerTube instance and pushes it to a corresponding YouTube channel.
|
||||
|
||||
# What the status of this?
|
||||
|
||||
@@ -12,7 +12,7 @@ So consider this a work in progress that will slowly get better with time.
|
||||
|
||||
# What does it do exactly?
|
||||
|
||||
* it retrieves the latest PeerTube video download URL from an instance
|
||||
* it retrieves the latest (or a specified) PeerTube video download URL from an instance
|
||||
* if you register the app into your PeerTube instance (optional), you can retrieve the latest video source instead of the highest quality encoded video
|
||||
* it creates a resumable upload into the target YouTube account
|
||||
* it downloads/uploads the latest PeerTube video to YouTube without using a cache (stream-to-stream)
|
||||
@@ -54,8 +54,8 @@ delete_video_source_after_transfer=true # this option is only available if you h
|
||||
# everything below is given by the register command with --peertube option
|
||||
[peertube.oauth2]
|
||||
client_id="<YOUR CLIENT_ID>"
|
||||
client_secret="<YOUR CLIENT_SECRET"
|
||||
refresh_token="/var/lib/tootube/refresh_token" # refresh_token are single use only in PeerTube so we need to store it in a separate file
|
||||
client_secret="<YOUR CLIENT_SECRET>"
|
||||
refresh_token="<YOUR CLIENT TOKEN>"
|
||||
|
||||
[youtube]
|
||||
refresh_token="" # leave empty for now
|
||||
@@ -69,7 +69,7 @@ Then run:
|
||||
tootube register --youtube --config <PATH TO YOUR TOOTUBE.TOML FILE>
|
||||
```
|
||||
|
||||
You’ll be then prompted with all the necessary information to register `tootube`. You’ll end with a `refresh_token` that you can now paste inside your tootube configuration.
|
||||
You’ll be then prompted with all the necessary information to register `tootube`. You’ll end with a `refresh_token` that you will be written back to the config file.
|
||||
|
||||
If you wish to register `tootube` on PeerTube, you can do so by using:
|
||||
|
||||
@@ -77,8 +77,4 @@ If you wish to register `tootube` on PeerTube, you can do so by using:
|
||||
tootube register --peertube --config <PATH TO YOUR TOOTUBE.TOML FILE>
|
||||
```
|
||||
|
||||
It will require your username/password (beware that 2FA is not supported for this feature as of now) and generate a first `refresh_token` that you will put inside the aformentioned file:
|
||||
|
||||
```bash
|
||||
echo -n '<REFRESH_TOKEN>' > /var/lib/tootube/refresh_token
|
||||
```
|
||||
It will require your username/password (beware that 2FA is not supported for this feature as of now) and generate a first `refresh_token` that will be written back to the config file.
|
||||
|
Reference in New Issue
Block a user