|  | @@ -120,7 +120,7 @@ function peertube_import_from_syncthing {
 | 
	
		
			
			| 120 | 120 |        echo "echo \"0\" > \$LOCKFILE";
 | 
	
		
			
			| 121 | 121 |        echo '';
 | 
	
		
			
			| 122 | 122 |        echo "for video_file in \$search_dir/*; do";
 | 
	
		
			
			| 123 |  | -      echo "    if [[ \"\$video_file\" == *'.ogv' || \"\$video_file\" == *'.mp4' || \"\$video_file\" == *'.webm' ]]; then";
 | 
	
		
			
			|  | 123 | +      echo "    if [[ \"\$video_file\" == *'.ogv' || \"\$video_file\" == *'.webm' ]]; then";
 | 
	
		
			
			| 124 | 124 |        echo "        if ! grep -q \"\$video_file\" /root/.peertube_uploaded; then";
 | 
	
		
			
			| 125 | 125 |        echo "            peertubetitle=\$(basename \"\$video_file\" | awk -F '.' '{print \$1}' | sed 's|_| |g' | sed 's|-| |g')";
 | 
	
		
			
			| 126 | 126 |        echo "            if $nodecmd \$import_script -n \"\$peertubetitle\" \$peertubensfw \$peertubeprivate -u \"\$peertubedomain\" -U \"\$peertubeuser\" --password \"\$peertubepassword\" -f \"\$video_file\"; then";
 | 
	
	
		
			
			|  | @@ -278,9 +278,9 @@ function peertube_import_from_file {
 | 
	
		
			
			| 278 | 278 |      if [ ! "$selected_file" ]; then
 | 
	
		
			
			| 279 | 279 |          return
 | 
	
		
			
			| 280 | 280 |      fi
 | 
	
		
			
			| 281 |  | -    if [[ "$selected_file" != *'.ogv' && "$selected_file" != *'.mp4' && "$selected_file" != *'.webm' ]]; then
 | 
	
		
			
			|  | 281 | +    if [[ "$selected_file" != *'.ogv' && "$selected_file" != *'.webm' ]]; then
 | 
	
		
			
			| 282 | 282 |          dialog --title $"Import video from file" \
 | 
	
		
			
			| 283 |  | -               --msgbox $"The video should be in ogv, mp4 or webm format" 6 75
 | 
	
		
			
			|  | 283 | +               --msgbox $"The video should be in ogv or webm format" 6 75
 | 
	
		
			
			| 284 | 284 |          return
 | 
	
		
			
			| 285 | 285 |      fi
 | 
	
		
			
			| 286 | 286 |  
 |