|
@@ -368,6 +368,11 @@ function peertube_import_videos {
|
368
|
368
|
|
369
|
369
|
cd $PEERTUBE_DIR || exit 32468356
|
370
|
370
|
import_script=$PEERTUBE_DIR/dist/server/tools/import-videos.js
|
|
371
|
+
|
|
372
|
+ # default to downloading as webm
|
|
373
|
+ sed -i "s|'.mp4'|'.webm'|g" $import_script
|
|
374
|
+ sed -i "s|const options = ['-f'.*|const options = ['-f', '(webm)[height<480]', '-o', path];|g" $import_script
|
|
375
|
+
|
371
|
376
|
if [ ! -f $import_script ]; then
|
372
|
377
|
dialog --title $"Import videos from legacy sites" \
|
373
|
378
|
--msgbox $"import-videos script was not found" 6 75
|