aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-19 11:12:58 +0100
committerChocobozzz <me@florianbigard.com>2018-02-19 11:12:58 +0100
commit35501c0fa7be9cb71e992c37e06f3cd01afc510b (patch)
tree705902d13c0ed812bb9295b64996d3168a3ec543 /support/doc
parent1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5 (diff)
downloadPeerTube-35501c0fa7be9cb71e992c37e06f3cd01afc510b.tar.gz
PeerTube-35501c0fa7be9cb71e992c37e06f3cd01afc510b.tar.zst
PeerTube-35501c0fa7be9cb71e992c37e06f3cd01afc510b.zip
Add ability to import just one video from youtube
Diffstat (limited to 'support/doc')
-rw-r--r--support/doc/dependencies.md4
-rw-r--r--support/doc/import-youtube.md24
2 files changed, 16 insertions, 12 deletions
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md
index a4a30374c..4ced42b8b 100644
--- a/support/doc/dependencies.md
+++ b/support/doc/dependencies.md
@@ -10,7 +10,7 @@
10 10
11``` 11```
12$ sudo apt update 12$ sudo apt update
13$ sudo apt install nginx ffmpeg postgresql openssl g++ make redis-server git 13$ sudo apt install nginx ffmpeg postgresql openssl g++ make redis-server
14``` 14```
15 15
16## Arch Linux 16## Arch Linux
@@ -36,7 +36,7 @@ $ sudo pacman -S nodejs yarn ffmpeg postgresql openssl redis
36$ sudo yum update 36$ sudo yum update
37$ sudo yum install epel-release 37$ sudo yum install epel-release
38$ sudo yum update 38$ sudo yum update
39$ sudo yum install nginx postgresql postgresql-server openssl gcc make redis git 39$ sudo yum install nginx postgresql postgresql-server openssl gcc make redis
40``` 40```
41 41
42## Other distributions 42## Other distributions
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
13You need at least 512MB RAM to run the script. 13You need at least 512MB RAM to run the script.
14Importation 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. 14Importation 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
18If 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
22Clone the Peertube repo to get the latest version inside your server: 23Clone the PeerTube repo to get the latest version:
23 24
24``` 25```
25git clone https://github.com/Chocobozzz/PeerTube.git 26git clone https://github.com/Chocobozzz/PeerTube.git
26CLONE="$(pwd)/Peertube" 27CLONE="$(pwd)/PeerTube"
27``` 28```
28 29
29Run ``yarn install`` 30Run ``yarn install``
@@ -48,10 +49,13 @@ cd ${CLONE}
48node dist/server/tools/import-youtube.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -y "YOUTUBE_URL" 49node 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...