lib/convert_api/task.rb in convert_api-1.0.0 vs lib/convert_api/task.rb in convert_api-1.0.1

- old
+ new

@@ -59,10 +59,12 @@ files end def detect_format(params) - resource = params[:File] || params[:Url] || Array(params[:Files]).first + return DEFAULT_URL_FORMAT if params[:Url] + + resource = params[:File] || Array(params[:Files]).first FormatDetector.new(resource).run end def config