lctr_mp3 0.0.0 → 0.0.1
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.
- checksums.yaml +4 -4
- data/Gemfile +0 -0
- data/Rakefile.rb +0 -0
- data/lib/id3_frame_ids.rb +1 -1
- data/lib/lctr_mp3.rb +4 -2
- data/spec/.rspec +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 076c49b2faa2d09a246233d75adfbce9186e7f29
|
4
|
+
data.tar.gz: b5cb85bf8a514fcc8564b30f0a08ac5304defaf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 971aaf23dd5d963827c3e29f1465f953d311eee10303c9a5613cb8558743175a571c37fe41a99b5831b50f4ecaa89007e6fb051db7d5c15aafc87a8c5dcc1ad9
|
7
|
+
data.tar.gz: 9b0d4b0fb4f3a9b3849f61b31c2bf610243f267405039e2ceb30e1ab29ba9e4dd7e47b0c884c64b50cf774c9633c82ece900c7de86caf4d6ae2b1cf48a61fda4
|
data/Gemfile
CHANGED
File without changes
|
data/Rakefile.rb
CHANGED
File without changes
|
data/lib/id3_frame_ids.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
#Frame IDs for the mp3 program.
|
2
2
|
|
3
|
-
FRAMES = {TIT2: "song_title", TALB: "album_title",
|
3
|
+
FRAMES = {TIT2: "song_title", TALB: "album_title", TPE1: "artist", TYER: "year", TRCK: "track", TIME: "time"}
|
data/lib/lctr_mp3.rb
CHANGED
@@ -16,7 +16,7 @@ require_relative '../lib/id3_frame_ids.rb'
|
|
16
16
|
#
|
17
17
|
class ID3
|
18
18
|
|
19
|
-
attr_accessor :mp3_file, :song_title, :album_title, :artist, :track, :year, :
|
19
|
+
attr_accessor :mp3_file, :song_title, :album_title, :artist, :track, :year, :version, :flags, :path, :time
|
20
20
|
|
21
21
|
# This will read in all of the tag data when the instance is initialized.
|
22
22
|
def initialize(file)
|
@@ -104,7 +104,9 @@ class ID3
|
|
104
104
|
end
|
105
105
|
|
106
106
|
fr_size = fr_size_str.to_i(2)
|
107
|
-
|
107
|
+
#p fr_size
|
108
|
+
frm = tag[loc+10,fr_size] #.gsub(/\u0000/,"")
|
109
|
+
#p frm
|
108
110
|
|
109
111
|
eval("self.#{FRAMES[type]} = frm")
|
110
112
|
|
data/spec/.rspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lctr_mp3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Woodward
|
@@ -22,7 +22,7 @@ files:
|
|
22
22
|
- lib/lctr_mp3.rb
|
23
23
|
- spec/.rspec
|
24
24
|
- spec/lctr_mp3_spec.rb
|
25
|
-
homepage:
|
25
|
+
homepage: https://github.com/drlctr/Lctr_mp3/tree/master
|
26
26
|
licenses:
|
27
27
|
- MIT license (MIT)
|
28
28
|
metadata: {}
|