lib/mediainfo.rb in mediainfo-1.0.2 vs lib/mediainfo.rb in mediainfo-1.0.3

- old
+ new

@@ -70,10 +70,10 @@ else raise RemoteUrlError, "HTTP call to #{input} is not working!" end elsif input.include?('.xml') return MediaInfo::Tracks.new(::File.open(input).read) - elsif !input.match(/[^\\]*\.\w+$/).nil? + elsif !input.match(/[^\\]*\.\w+$/).nil? # A local file @file = ::File.expand_path input # turns ~/path/to/file into /home/user/path/to/file raise ArgumentError, 'You must include a file location.' if @file.nil? raise ArgumentError, "need a path to a video file, #{@file} does not exist" unless ::File.exist? @file @file_path = ::File.dirname @file @filename = ::File.basename @file