Re: [ruby] Getting metadata / external playstate changes

2010-01-05 Thread Tenno Seremel
> info = xmms.medialib_get_info(id).wait.value.to_propdict >^^^ > puts info.class.name > p info It says Xmms::Dict # ok. info.each_pair { |a, b| puts "[#{a}] - #{b}" } and puts "Title: #{info[:title]}" appears to be working co

Re: [ruby] Getting metadata / external playstate changes

2010-01-05 Thread Tilman Sauerbeck
Tenno Seremel [2010-01-04 13:08]: Hi, > Now I want to get some metadata for a currently playing song (for now). > I'm reading tutorial 3 and there are the following lines there: > > info = xmms.medialib_get_info(id).wait.value > info.each_pair { |src, key, val| puts "[#{src}] #{key} = #{val}" }

Re: [ruby] Getting metadata / external playstate changes

2010-01-04 Thread Tenno Seremel
Woops. If you need .ui file used to generate a GUI it's in http://serenareem.net/files/xsg-other.zip -- ___ Xmms2-devel mailing list Xmms2-devel@lists.xmms.se http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

[ruby] Getting metadata / external playstate changes

2010-01-04 Thread Tenno Seremel
Hi, it's me again :} I've finally got to my program again and resolved my previous issue — I shouldn't return 'self' from a function i'm calling within notifier block. Now I want to get some metadata for a currently playing song (for now). I'm reading tutorial 3 and there are the following lines