ruby-mp3info 0.5.1 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
data/EXAMPLES DELETED
@@ -1,43 +0,0 @@
1
- = Examples
2
-
3
- # a good exercise is to read the test.rb to understand how the library works deeper
4
-
5
- require "mp3info"
6
-
7
- # read and display infos & tags
8
-
9
- Mp3Info.open("myfile.mp3") do |mp3info|
10
- puts mp3info
11
- end
12
-
13
-
14
-
15
- # read/write tag1 and tag2 with Mp3Info#tag attribute
16
- # when reading tag2 have priority over tag1
17
- # when writing, each tag is written.
18
-
19
-
20
- Mp3Info.open("myfile.mp3") do |mp3|
21
- puts mp3.tag.title
22
- puts mp3.tag.artist
23
- puts mp3.tag.album
24
- puts mp3.tag.tracknum
25
-
26
- mp3.tag.title = "track title"
27
- mp3.tag.artist = "artist name"
28
-
29
- end
30
-
31
- Mp3Info.open("myfile.mp3") do |mp3|
32
- # you can access four letter v2 tags like this
33
- puts mp3.tag2.TIT2
34
- mp3.tag2.TIT2 = "new TIT2"
35
- # or like that
36
- mp3.tag2["TIT2"]
37
-
38
- # at this time, only COMM tag is processed after reading and before writing
39
- # according to ID3v2#options hash
40
- mp3.tag2.options[:lang] = "FRE"
41
- mp3.tag2.COMM = "my comment in french, correctly handled when reading and writing"
42
- end
43
-
data/README DELETED
@@ -1,28 +0,0 @@
1
- = Description
2
- ruby-mp3info gives you access to low level informations on mp3 files
3
- (bitrate, length, samplerate, etc...). It can read, write, remove id3v1 and
4
- id3v2 tags. It is written in pure ruby.
5
-
6
-
7
- = Download
8
-
9
- get tar.gz at
10
- http://rubyforge.org/projects/ruby-mp3info/
11
-
12
-
13
- = Installation
14
-
15
- $ ruby install.rb config
16
- $ ruby install.rb setup
17
- # ruby install.rb install
18
-
19
- or
20
-
21
- # gem install ruby-mp3info
22
-
23
-
24
- = Todo
25
-
26
- * encoder detection
27
- * support for more tags in id3v2
28
- * generalize id3v2 with other audio formats (APE, MPC, OGG, etc...)