X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Ftools.md;h=1356d2c6a8a5c84f968e24fe02db61e227712402;hb=97a2a704e2636d70ceda9c7e0ee1becd09a6c517;hp=526cc98b1fd062120b91da5a3817898e11eb7695;hpb=9c391612038cd48cfeb2315dcbb8feddcf877d94;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/tools.md b/support/doc/tools.md index 526cc98b1..1356d2c6a 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md @@ -140,7 +140,7 @@ these rules (ensure to customize them to your needs): 0 0 * * * /usr/bin/npm rebuild youtube-dl --prefix /PATH/TO/PEERTUBE/ # Synchronize the YT channel every sunday at 22:00 all the videos published since last monday included -0 22 * * 0 /usr/bin/node /PATH/TO/PEERTUBE/dist/server/tools/peertube-import-videos.js -u '__PEERTUBE_URL__' -U '__USER__' --password '__PASSWORD__' --target-url 'https://www.youtube.com/channel/___CHANNEL__' --since $(date --date="-6 days" +%Y-%m-%d) +0 22 * * 0 /usr/bin/node /PATH/TO/PEERTUBE/dist/server/tools/peertube-import-videos.js -u '__PEERTUBE_URL__' -U '__USER__' --password '__PASSWORD__' --target-url 'https://www.youtube.com/channel/___CHANNEL__' --since $(date --date="-6 days" +\%Y-\%m-\%d) ``` Also you may want to subscribe to the PeerTube channel in order to manually check the synchronization is successful. @@ -292,7 +292,8 @@ $ docker-compose exec -u peertube peertube npm run create-transcoding-job -- --g ### create-import-video-file-job.js -You can use this script to import a video file to replace an already uploaded file or to add a new resolution to a video. PeerTube needs to be running. +You can use this script to import a video file to replace an already uploaded file or to add a new webtorrent resolution to a video. PeerTube needs to be running. +You can then create a transcoding job using `npm run create-transcoding-job` if you need to optimize your file or create an HLS version of it. ```bash $ # Basic installation