ruby-audioinfo 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/lib/audioinfo.rb +4 -3
  3. metadata +3 -3
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.2 / 2008-04-25
2
+
3
+ * fix on parsing of MusicBrainz tags of .wma files
4
+
1
5
  === 0.1.1 / 2008-04-17
2
6
 
3
7
  * updated gem dependency on MP4Info >= 0.3.2, which fixes utf-8 handling
data/lib/audioinfo.rb CHANGED
@@ -30,7 +30,7 @@ class AudioInfo
30
30
 
31
31
  SUPPORTED_EXTENSIONS = %w{mp3 ogg mpc wma mp4 aac m4a flac}
32
32
 
33
- VERSION = "0.1.1"
33
+ VERSION = "0.1.2"
34
34
 
35
35
  attr_reader :path, :extension, :musicbrainz_infos, :tracknum, :bitrate, :vbr
36
36
  attr_reader :artist, :album, :title, :length, :date
@@ -121,8 +121,9 @@ class AudioInfo
121
121
  @bitrate = @info.info["bitrate"]
122
122
  @length = @info.info["playtime_seconds"]
123
123
  MUSICBRAINZ_FIELDS.each do |key, original_key|
124
- #next if key == "trmid" # no trmid with WMA since picard cannot analyze it
125
- @musicbrainz_infos[key] = @info.info["MusicBrainz/" + original_key.tr(" ", "")]
124
+ @musicbrainz_infos[key] =
125
+ @info.info["MusicBrainz/" + original_key.tr(" ", "")] ||
126
+ @info.info["MusicBrainz/" + original_key]
126
127
  end
127
128
 
128
129
  when 'aac', 'mp4', 'm4a'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-audioinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Pierronnet
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-17 00:00:00 +02:00
12
+ date: 2008-04-25 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements: []
111
111
 
112
112
  rubyforge_project: ruby-audioinfo
113
- rubygems_version: 1.0.1
113
+ rubygems_version: 1.1.1
114
114
  signing_key:
115
115
  specification_version: 2
116
116
  summary: "ruby-audioinfo glue together various audio ruby libraries and presents a single API to the developper. Currently, supported formats are: mp3, ogg, mpc, ape, wma, flac, aac, mp4, m4a."