Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpd-dynamic(1p) [debian man page]

MPD-DYNAMIC(1p) 					User Contributed Perl Documentation					   MPD-DYNAMIC(1p)

NAME
mpd-dynamic - a dynamic playlist for mpd VERSION
version 1.120610 DESCRIPTION
This program implements a dynamic playlist for MPD, build on top of the Audio::MPD perl module. MPD (music player daemon) is a cool music player, but it lacks a dynamic playlist. A dynamic playlist is a playlist that will change automatically over time. In particular, it will remove already played songs (keeping at most a given number of songs) and add new songs to the playlist so it never fall short of songs. Note that since mpd is a daemon needing no gui to work, "mpd-dynamic" is also a daemon. That is, it will fork and do all its work from the background. This way, you can fire "mpd" and "mpd-dynamic" and forget completely about your music (especially since "mpd-dynamic" is a low-resource program): it will just be there! :-) USAGE
mpd-dynamic [options] OPTIONS
General behaviour You can customize the usage of mpd-dynamic with the following options: -o[ld] <old> Number of old tracks to keep in the backlog. Defaults to 10. -n[ew] <new> Number of new tracks to keep in the to-be-played playlist. Defaults to 10. -s[leep] <sleep> Time spent sleeping (in seconds) before checking if playlist should be updated. Default to 5 seconds. -d[ebug] Run mpd-dynamic in debug mode. In particular, the program will not daemonize itself. Default to false. -e[ncoding] <encoding> Print debug messages with this encoding. Since mpd-dynamic is meant to be a silent daemon, this option will not be used outside of debug mode. Default to "utf-8". --version --usage --help --man Print the usual program information Note however that those flags are optional: since "mpd-dynamic" comes with some sane defaults, you can fire "mpd-dynamic" as is. Ratings You can also take advantage of ratings if you want. With those options, songs need to have at least a given rating (or no rating yet) to be inserted: this way, you will only listen to your favorite songs! Ratings can be created / updated with "mpd-rate". Note that if you supply a non-existant rating db-file, the rating mechanism will be ignored. The following options control the rating mechanism: -r[atings] <ratings> The path of a db file with the ratings per song. The keys are the song path (relative to MPD root), and the value is an integer (the rating). Default to "~/.mpd/ratings.db". -m[in[imum]] <min> The minimum rating for a song to be inserted in the playlist. Default to 4. AUTHOR
Jerome Quelin COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-03-01 MPD-DYNAMIC(1p)

Check Out this Related Man Page

Test::Corpus::Audio::MPD(3pm)				User Contributed Perl Documentation			     Test::Corpus::Audio::MPD(3pm)

NAME
Test::Corpus::Audio::MPD - automate launching of fake mdp for testing purposes VERSION
version 1.120990 SYNOPSIS
use Test::Corpus::Audio::MPD; # die if error [...] stop_test_mpd(); DESCRIPTION
This module will try to launch a new mpd server for testing purposes. This mpd server will then be used during POE::Component::Client::MPD or Audio::MPD tests. In order to achieve this, the module will create a fake mpd.conf file with the correct pathes (ie, where you untarred the module tarball). It will then check if some mpd server is already running, and stop it if the "MPD_TEST_OVERRIDE" environment variable is true (die otherwise). Last it will run the test mpd with its newly created configuration file. Everything described above is done automatically when the module is "use"-d. Once the tests are run, the mpd server will be shut down, and the original one will be relaunched (if there was one). Note that the test mpd will listen to "localhost", so you are on the safe side. Note also that the test suite comes with its own ogg files. Those files are 2 seconds tracks recording my voice saying ok, and are freely redistributable under the same license as the code itself. In case you want more control on the test mpd server, you can use the supplied public methods. This might be useful when trying to test connections with mpd server. METHODS
customize_test_mpd_configuration( [$port] ); Create a fake mpd configuration file, based on the file mpd.conf.template located in share subdir. The string PWD will be replaced by the real path (ie, where the tarball has been untarred), while TMP will be replaced by a new temp directory. The string PORT will be replaced by $port if specified, 6600 otherwise (MPD's default). my $dir = playlist_dir(); Return the temp dir where the test playlists will be stored. start_test_mpd(); Start the fake mpd, and die if there were any error. stop_test_mpd(); Kill the fake mpd. SEE ALSO
You can look for information on this module at: o Search CPAN http://search.cpan.org/dist/Test-Corpus-Audio-MPD <http://search.cpan.org/dist/Test-Corpus-Audio-MPD> o See open / report bugs http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Corpus-Audio-MPD <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Corpus-Audio-MPD> o Mailing-list (same as Audio::MPD) http://groups.google.com/group/audio-mpd <http://groups.google.com/group/audio-mpd> o Git repository http://github.com/jquelin/test-corpus-audio-mpd <http://github.com/jquelin/test-corpus-audio-mpd> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/Test-Corpus-Audio-MPD <http://annocpan.org/dist/Test-Corpus-Audio-MPD> o CPAN Ratings http://cpanratings.perl.org/d/Test-Corpus-Audio-MPD <http://cpanratings.perl.org/d/Test-Corpus-Audio-MPD> AUTHOR
Jerome Quelin COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Jerome Quelin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-15 Test::Corpus::Audio::MPD(3pm)
Man Page