Skip to content

Commit

Permalink
Added script which displays metadata about the current track.
Browse files Browse the repository at this point in the history
  • Loading branch information
njh committed Apr 26, 2008
1 parent 775da5b commit 5028c59
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/metadata.rb
@@ -0,0 +1,16 @@
#!/usr/bin/ruby
#
# Script to display the metadata hash for the currently playing track.
#
# Author:: Nicholas J Humfrey (mailto:njh@aelius.com)
# Copyright:: Copyright (c) 2008 Nicholas J Humfrey
# License:: Distributes under the same terms as Ruby
#

$:.unshift File.dirname(__FILE__)+'/../lib'

require 'mpris'
require 'pp'

mpris = Mpris.new
pp mpris.player.metadata

0 comments on commit 5028c59

Please sign in to comment.