 |
Forums |
Admin Start New Thread
| Message: 23408 |
 |
BY: s v (mrnegitoro) DATE: 2007-06-08 22:42 SUBJECT: Nil or False Hi, I have this piece of code:
require 'rubygems'
require 'id3lib'
def mp3_tags(file)
tag = ID3Lib::Tag.new(file)
puts tag.has_tag?(ID3Lib::V1)
puts tag.artist
puts tag.album
end
When I pass it mp3 files I get:
false
nil
nil
I know the files I'm passing it have valid id3 tags...
I have:
ubuntu feisty fawn 7.04
ruby 1.8.5 (2006-08-25) [i486-linux]
id3lib and id3lib-dev 3.8.3
id3lib-ruby-0.5.0
Dunno what to do :(
Thanks! | |
Thread View
Post a followup to this message
|
 |