Przeglądaj źródła

Default to downloading videos in webm format

Bob Mottram 6 lat temu
rodzic
commit
57c4622387
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5
    0
      src/freedombone-app-peertube

+ 5
- 0
src/freedombone-app-peertube Wyświetl plik

@@ -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