*** empty log message ***
[booh] / bin / booh-classifier
index 0e9f144af5f3e4090938a654f07de0bff30c5f53..b4e84b61b640e509c3abc15b41e7107c65f746bb 100644 (file)
@@ -1031,8 +1031,8 @@ def open_dir(path)
             return utf8(_("Source directory or sub-directories can't contain a single-quote character, sorry: %s") % dir)
         end
         Dir.entries(dir).each { |file|
-            if file =~ /['"\[\]]/
-                return utf8(_("Files can't contain any of the characters ', \", [ or ], sorry: %s") % "#{dir}/#{file}")
+            if file =~ /'/ && type = entry2type(file) && type == 'video'
+                return utf8(_("Videos can't contain a single quote character ('), sorry: %s") % "#{dir}/#{file}")
             end
         }
     }