diff options
Diffstat (limited to 'support/doc/import-youtube.md')
-rw-r--r-- | support/doc/import-youtube.md | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/support/doc/import-youtube.md b/support/doc/import-youtube.md index 3b8b515a7..39f01b85b 100644 --- a/support/doc/import-youtube.md +++ b/support/doc/import-youtube.md | |||
@@ -11,19 +11,20 @@ Be sure you own the videos or have the author's authorization to do so. | |||
11 | ## Prerequisites | 11 | ## Prerequisites |
12 | 12 | ||
13 | You need at least 512MB RAM to run the script. | 13 | You need at least 512MB RAM to run the script. |
14 | Importation can be launched directly from a peertube server (in this case you already have dependencies installed :+1:) or from a separate server, even a dekstop PC. | 14 | Importation can be launched directly from a PeerTube server (in this case you already have dependencies installed :+1:) or from a separate server, even a dekstop PC. |
15 | 15 | ||
16 | ### Dependencies | 16 | ### Dependencies |
17 | 17 | ||
18 | If you do not run the script from a Peertube server, you need to follow the steps of the [dependencies guide](dependencies.md). | 18 | * [PeerTube dependencies](dependencies.md) |
19 | * git | ||
19 | 20 | ||
20 | ### Installation | 21 | ### Installation |
21 | 22 | ||
22 | Clone the Peertube repo to get the latest version inside your server: | 23 | Clone the PeerTube repo to get the latest version: |
23 | 24 | ||
24 | ``` | 25 | ``` |
25 | git clone https://github.com/Chocobozzz/PeerTube.git | 26 | git clone https://github.com/Chocobozzz/PeerTube.git |
26 | CLONE="$(pwd)/Peertube" | 27 | CLONE="$(pwd)/PeerTube" |
27 | ``` | 28 | ``` |
28 | 29 | ||
29 | Run ``yarn install`` | 30 | Run ``yarn install`` |
@@ -48,10 +49,13 @@ cd ${CLONE} | |||
48 | node dist/server/tools/import-youtube.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -y "YOUTUBE_URL" | 49 | node dist/server/tools/import-youtube.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -y "YOUTUBE_URL" |
49 | ``` | 50 | ``` |
50 | 51 | ||
51 | - PEERTUBE_URL : the full URL of your peertube server where you want to import, eg: https://peertube.cpy.re/ | 52 | * PEERTUBE_URL : the full URL of your PeerTube server where you want to import, eg: https://peertube.cpy.re/ |
52 | - PEERTUBE_USER : your peertube account where videos will be uploaded | 53 | * PEERTUBE_USER : your PeerTube account where videos will be uploaded |
53 | - PEERTUBE_PASSWORD : password of your peertube account | 54 | * PEERTUBE_PASSWORD : password of your PeerTube account |
54 | - YOUTUBE_URL : the youtube channel you want to import. Supports Youtube channel (eg https://www.youtube.com/channel/ChannelId) or Youtube user (eg: https://www.youtube.com/c/UserName or https://www.youtube.com/user/UserName) | 55 | * YOUTUBE_URL : the youtube video/user/channel/playlist you want to import. Examples: |
56 | * Channel: https://www.youtube.com/channel/ChannelId | ||
57 | * User https://www.youtube.com/c/UserName or https://www.youtube.com/user/UserName | ||
58 | * Video https://www.youtube.com/watch?v=blabla | ||
55 | 59 | ||
56 | The script will get all public videos from Youtube, download them, then upload to Peertube. | 60 | The script will get all public videos from Youtube, download them and upload to PeerTube. |
57 | Already downloaded videos will not be uploaded twice, so you can run and re-run the script in case of crash, disconnection, ... without problem. \ No newline at end of file | 61 | Already downloaded videos will not be uploaded twice, so you can run and re-run the script in case of crash, disconnection... |