1#!/usr/bin/perl 2# Example musicmpdscrobble.conf file 3# 4# This is a perl file. It must be a hash reference. This means a comma between 5# key / value pairs. 6# 7# To check syntax run perl -c musicmpdscrobble.conf 8# 9 10{ 11# LastFM Username and Password 12 lastfm_username => "riemann42", 13 lastfm_password => "secret", 14 15# Specify last.fm client information. Change this to code provided by last.fm 16# if you are releasing an application that is not a demo or test. 17# 18# lastfm_client_id => "tst", 19# lastfm_client_version => "1.0", 20 21# Specify mpd_server info. Default is MPD_HOST or localhost 22# mpd_server => 'localhost', 23 24# Specify mpd_port. Default is MPD_PORT or 6600 25# mpd_port => 6600, 26 27# If you have installed the Music::Tag module, set to 1. 28 musictag => 0, 29 30# If you want information from musictag to overwrite info from mpd (not recommended) set to 1 31 musictag_overwrite => 0, 32 33# Specify the music_directory path for MPD. 34 music_directory => "/mnt/media/music/MP3s", 35 36# Set the verbosity level. 1 through 4. 3 is a good medium 37 verbose => 3, 38 39#Specify the logfile path 40 logfile => "/var/log/musicmpdscrobble.log", 41 42#Specify the file to write the pid to. 43 pidfile => "/var/run/musicmpdscrobble.pid", 44 45#Specify the file to store pending scrobbles in. 46 scrobble_queue => "/var/lib/musicmpdscrobble.queue", 47 48#Automatically get missing mbid info: 49# get_mbid_from_mb => 1, 50 51# list of programs to run when a song start. Accepts the following variables: 52# 53# %f filename 54# %a Artist 55# %b Album 56# %t Title 57# %l Length of track in seconds 58# %n Track number 59# %m mbid of track 60# 61# runonstart => [], 62 63# list of programs to run after song submit. 64# runonsubmit => [], 65}; 66 67 68