Module: RIO::Ext::Mp3Info
Instance Method Summary collapse
- #album ⇒ Object
- #artist ⇒ Object
- #mp3info ⇒ Object
- #mp3length ⇒ Object
- #time ⇒ Object
- #title ⇒ Object
- #vbr ⇒ Object (also: #vbr?)
- #year ⇒ Object
Instance Method Details
#album ⇒ Object
49 |
# File 'lib/rio/ext/mp3info.rb', line 49 def album() _chop0(tag.album) end |
#artist ⇒ Object
50 |
# File 'lib/rio/ext/mp3info.rb', line 50 def artist() _chop0(tag.artist) end |
#mp3info ⇒ Object
42 |
# File 'lib/rio/ext/mp3info.rb', line 42 def mp3info() ::Mp3Info.new(self.fspath) end |
#mp3length ⇒ Object
52 |
# File 'lib/rio/ext/mp3info.rb', line 52 def mp3length() mp3info.length end |
#time ⇒ Object
55 56 57 58 |
# File 'lib/rio/ext/mp3info.rb', line 55 def time() t = Time.at(mp3length).getutc t.strftime(t.hour == 0 ? "%M:%S" : "%H:%M:%S") end |
#title ⇒ Object
48 |
# File 'lib/rio/ext/mp3info.rb', line 48 def title() _chop0(tag.title) end |
#vbr ⇒ Object Also known as: vbr?
53 |
# File 'lib/rio/ext/mp3info.rb', line 53 def vbr() mp3info.vbr end |
#year ⇒ Object
51 |
# File 'lib/rio/ext/mp3info.rb', line 51 def year() _chop0(tag.year.to_s) end |