quotes around video title

This commit is contained in:
Bob Mottram 2018-04-02 12:26:12 +01:00
parent 9f42792e6a
commit c094386951
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ function peertube_import_from_syncthing {
echo " if ! grep -q \"\$video_file\" /root/.peertube_uploading; then";
echo " echo \"\$video_file\" >> /root/.peertube_uploading";
echo " peertubetitle=\$(basename \"\$video_file\" | awk -F '.' '{print \$1}' | sed 's|_| |g' | sed 's|-| |g')";
echo " if $nodecmd \$import_script -n \$peertubetitle \$peertubensfw \$peertubeprivate -u \"\$peertubedomain\" -U \"\$peertubeuser\" --password \"\$peertubepassword\" -f \"\$video_file\"; then";
echo " if $nodecmd \$import_script -n \"\$peertubetitle\" \$peertubensfw \$peertubeprivate -u \"\$peertubedomain\" -U \"\$peertubeuser\" --password \"\$peertubepassword\" -f \"\$video_file\"; then";
echo " echo \"\$video_file\" >> /root/.peertube_uploaded";
echo " sed -i \"/\$(basename \$video_file)/d\" /root/.peertube_uploading";
echo " exit 0";