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