aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/import-videos.md
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-05 10:00:15 +0100
committerChocobozzz <me@florianbigard.com>2018-03-05 10:00:15 +0100
commit358770dbbd88136b211090832b24cf3d5b648234 (patch)
treed02ead83bf3ad24bacf64664603da2cc25ac46c4 /support/doc/import-videos.md
parentad34cfc8ac6ad537265c0e24daf30ee7cacd8e06 (diff)
downloadPeerTube-358770dbbd88136b211090832b24cf3d5b648234.tar.gz
PeerTube-358770dbbd88136b211090832b24cf3d5b648234.tar.zst
PeerTube-358770dbbd88136b211090832b24cf3d5b648234.zip
Refractor tools documentation
Diffstat (limited to 'support/doc/import-videos.md')
-rw-r--r--support/doc/import-videos.md63
1 files changed, 0 insertions, 63 deletions
diff --git a/support/doc/import-videos.md b/support/doc/import-videos.md
deleted file mode 100644
index 4e495d8df..000000000
--- a/support/doc/import-videos.md
+++ /dev/null
@@ -1,63 +0,0 @@
1# Import videos guide
2
3You can use this script to import videos from all [supported sites of youtube-dl](https://rg3.github.io/youtube-dl/supportedsites.html) into PeerTube.
4Be sure you own the videos or have the author's authorization to do so.
5
6 - [Installation](#installation)
7 - [Usage](#usage)
8
9## Installation
10
11## Prerequisites
12
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.
15
16### Dependencies
17
18 * [PeerTube dependencies](dependencies.md)
19
20### Installation
21
22Clone the PeerTube repo to get the latest version:
23
24```
25git clone https://github.com/Chocobozzz/PeerTube.git
26CLONE="$(pwd)/PeerTube"
27```
28
29Run ``yarn install``
30```
31cd ${CLONE}
32yarn install
33```
34
35Build server tools:
36```
37cd ${CLONE}
38npm run build:server
39```
40
41
42## Usage
43
44You are now ready to run the script :
45
46```
47cd ${CLONE}
48node dist/server/tools/import-videos.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -t "TARGET_URL"
49```
50
51 * 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_PASSWORD : password of your PeerTube account
54 * TARGET_URL : the target url you want to import. Examples:
55 * YouTube:
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
59 * Vimeo: https://vimeo.com/xxxxxx
60 * Dailymotion: https://www.dailymotion.com/xxxxx
61
62 The script will get all public videos from Youtube, download them and upload to PeerTube.
63 Already downloaded videos will not be uploaded twice, so you can run and re-run the script in case of crash, disconnection...