ruby-audioinfo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/audioinfo.rb +4 -3
- metadata +3 -3
data/History.txt
CHANGED
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.
|
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
|
-
|
125
|
-
|
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.
|
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-
|
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.
|
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."
|