lib/audioinfo.rb in ruby-audioinfo-0.3.3 vs lib/audioinfo.rb in ruby-audioinfo-0.4

- old
+ new

@@ -32,13 +32,13 @@ "albumartistid" => "Album Artist Id", "sortname" => "Sort Name", "trackid" => "Track Id" } - SUPPORTED_EXTENSIONS = %w{mp3 ogg mpc wma mp4 aac m4a flac} + SUPPORTED_EXTENSIONS = %w{mp3 ogg opus spx mpc wma mp4 aac m4a flac} - VERSION = "0.3.3" + VERSION = "0.4" attr_reader :path, :extension, :musicbrainz_infos, :tracknum, :bitrate, :vbr attr_reader :artist, :album, :title, :length, :date # Part of testing API - you should not use this directly @@ -107,10 +107,10 @@ @length = @info.length.to_i @date = @info.tag["date"] @vbr = @info.vbr @info.close - when 'ogg' + when 'ogg', 'opus', 'spx' @info = OggInfo.new(filename) default_fill_musicbrainz_fields default_tag_fill @bitrate = @info.bitrate/1000 @tracknum = @info.tag.tracknumber.to_i