From: Eric Wong <email@example.com> To: Rene Maurer <firstname.lastname@example.org> Cc: email@example.com Subject: Re: Output the filename of the current playing song Date: Fri, 27 Nov 2015 11:34:08 +0000 [thread overview] Message-ID: <20151127113408.GA11770@dcvr.yhbt.net> (raw) In-Reply-To: <20151127113317.21e820ad@loco5> Rene Maurer <firstname.lastname@example.org> wrote: > Hello > > I am really very happy using dtas. There are some minor things I miss. > One thing is a shortcut to get the filename of the current playing song. > For example something like this: > > # COMMANDS > > * current song [FILENAME] - output the filename of the current playing > song or the song at the top if the queue in case the player is > paused. If FILENAME is specified, the output is written to that file. Great to know you're still using it! You can use "dtas-ctl current" and parse the YAML output. Perhaps something along the lines of: #!/usr/bin/env ruby require 'yaml' x = YAML.load `dtas-ctl current` if cur = x['current'] puts cur['infile'] elsif x['paused'] x = YAML.load `dtas-ctl queue cat` puts Array(x) end Fwiw, I never intended the current player protocol to be used much; but was planning on writing an MPRIS proxy to talk to dtas-player and encourage users to use existing MPRIS clients instead... However, MPRIS seems to be a dead-end for text-only clients; while mpd has a strong following. So I'll probably start work on an mpd protocol proxy over holidays, so we'll have a lot more clients able to use the playback features dtas-player. Of course, the editing/effects features of dtas will only be available via the dtas-player protocol, but the MPD-compatible library will be able to play YAML files intended for dtas-splitfx (or anything dtas-player understands).
prev parent reply other threads:[~2015-11-27 11:34 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-11-27 10:33 Rene Maurer 2015-11-27 11:34 ` Eric Wong [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://80x24.org/dtas/README * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20151127113408.GA11770@dcvr.yhbt.net \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Output the filename of the current playing song' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
everything related to duct tape audio suite (dtas) This inbox may be cloned and mirrored by anyone: git clone --mirror https://80x24.org/dtas-all git clone --mirror http://ou63pmih66umazou.onion/dtas-all # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V1 dtas-all dtas-all/ https://80x24.org/dtas-all \ firstname.lastname@example.org public-inbox-index dtas-all Example config snippet for mirrors. Newsgroups are available over NNTP: nntp://news.public-inbox.org/inbox.comp.audio.dtas nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.dtas note: .onion URLs require Tor: https://www.torproject.org/ code repositories for project(s) associated with this inbox: ../../dtas.git AGPL code for this site: git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git