Check-in [05817e12db]
Overview
| Comment: | Move action/playback handlers to contrib/cmdline/ |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
05817e12db2cb88831a95e2860ade34d |
| User & Date: | mario on 2016-10-18 22:11:13 |
| Other Links: | manifest | tags |
Context
|
2016-10-22
| ||
| 18:58 | Allow plugin # config: bags only with <> or {} as delimiters, to support markup description/label. check-in: ea30a91e8d user: mario tags: trunk | |
|
2016-10-18
| ||
| 22:11 | Move action/playback handlers to contrib/cmdline/ check-in: 05817e12db user: mario tags: trunk | |
| 21:57 | Make specbuttons smaller, lookup image names (using `locate` - should be moved to configwin saving callback, as it's slow on startup otherwise) check-in: 4767ecba93 user: mario tags: trunk | |
Changes
Added contrib/cmdline/mpd-player version [0b1e7b97ed].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
!/bin/bash
# title: MPD playback wrapper
# description: handles MPD playlist types from ST2 url input
# author: Rocus van Oosten
# version: 1.2
MPD_HOST=10.0.2.209
export MPD_HOST
ST=$1 # parameter 1 contains stream information
echo $ST #just for testing
if [[ $ST == toggle ]] ;
then
mpc toggle
elif [[ $ST == louder ]] ;
then
mpc volume +5
elif [[ $ST == softer ]] ;
then
mpc volume -5
else
mpc clear
if [[ $ST == /* ]] ;
then # temp treamtuner2 file (starts with / )
FN=basename $ST
scp $ST root@$MPD_HOST:/var/lib/mpd/music/WEBRADIO
mpc load WEBRADIO/$FN
elif [[ $ST == *pls* ]] || [[ $ST == *m3u* ]] || [[ $ST == *asx* ]] || [[ $ST == *ashx* ]] || [[ $ST == *xspf* ]] ;
then # stream (starts with http and is playlist)
mpc load $ST
else # stream (must be added to mpd)
mpc add $ST
fi
mpc play
fi
|
Name change from contrib/streamripper_addgenre to contrib/cmdline/streamripper_addgenre.
| ︙ | ︙ |