# ~/.moosic/moosic.conf # Various variables that are meaningful to the various parts of Moosic may be # specified here. cli_client = { # Shuffle the entire filelist given to a command. This is done after # directory expansion has taken place, before sending the filelist to the # Moosic server. "shuffle-global": True, # Shuffle the actual command line arguments named in a filelist, before # doing any expansions. This is meaningless if "shuffle-global" is true. "shuffle-args": False, # Shuffle the results of expanding any directories named in a filelist. This # is meaningless if "shuffle-global" is true. "shuffle-dir": False, # If this is true, then whenever a regular expression is used as an argument # to a command, that expression will be treated as case-insensitive. "ignore-case": False, "dir-recurse": True, "file-munge": True, # If true, then the arguments to any commands that add to the queue will be # interpreted as patterns that will be used in a fuzzy search. "auto-find": False, # If true, then the arguments to any commands that add to the queue will be # interpreted as patterns that will be used in a regular expression search. "auto-grep": False, # The searching done by the "auto-find" and "auto-grep" options will be # limited to tree of directories rooted at this directory. "music-dir": '~/music/', "tcp-address": None, "auto-start-server": True, "no-unplayables": True, } server = { "history-size": 50, "local-only": False, "foreground": False, } song_handlers = [ # Each member of this list represents a binding between a song-type # matcher and a song-type handler. # # The song-type matcher is specified first, and consists of a pair of # strings. The first string specifies the method of matching, and the # subsequent strings provide the information that the matcher needs to # identify a particular type. # # The song-type handler is specified second, and also consists of a pair # strings. The first string specifies the kind of the handler, and the # second string specifies the information needed to create a specific # instance of a handler of that kind. # # Methods of detection include matching by regular expression, by wildcard # pattern, by magic number, and by the is_our_file() method of XMMS/BMP # plugins. # # Kinds of handlers include an externally executed command, an XMMS # input/output plugin pair, a BMP input/output plugin pair, a GStreamer # pipeline, the GStreamer auto-plugger, libxine, SDL, that Helix thingy, # and any Python class that implements the appropriate interface (defined # in the moosic.server.song_handler module). ( ("glob", r"*.ogg"), ("command", r"ogg123 -q") ), ( ("regex", r"(?i)\.mp[23]$"), ("command", r"mpg321 -q") ), ( ("regex", r"(?i)\.midi?$"), ("command", r"timidity -idqq") ), ( ("regex", r"(?i)\.(mod|xm|s3m|stm|it|mtm|669|amf)$"), ("command", r"mikmod -q -nohq") ), ( ("regex", r"(?i)\.(avi|asf|mpe?g|wav|aiff|aifc|aif|au|cdr)$"), ("command", r"mplayer -vo null -vc null -nocache -really-quiet") ), ( ("regex", r"(?i)^cda://(\S*)"), ("command", r"takcd \1") ), ( ("regex", r"(?i)\.m3u$"), ("command", r"moosic -o pl-add") ), ]