def file_tail (file, offset)
56 f=File.new(file)
f.seek(-offset,IO::SEEK_END)
f.read
end
def get_tags file
file_tail(file, 128)
end
using these def to get ID3 data
works well till it encounters this
Äîðîãàÿïðîïàæà.mp3
56 :in ''initialize'' : Invalid argument -
c://///Äîðîãàÿïðîïàæà.mp3
(Errno::EINVAL)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---