1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:41 +02:00

add shoutcast.m3u for mpd

This commit is contained in:
kev 2016-08-18 13:00:40 +08:00
parent 7b7d1c831f
commit 0d5b06a99e
2 changed files with 2502 additions and 1 deletions

View File

@ -26,9 +26,14 @@ mpd:
## Server Setup ## Server Setup
```bash ```bash
$ cd ~/fig/mpd/
$ mkdir -p music playlists $ mkdir -p music playlists
$ wget https://upload.wikimedia.org/wikipedia/commons/d/d5/Pop_Goes_the_Weasel.ogg -O music/song.ogg $ wget https://upload.wikimedia.org/wikipedia/commons/d/d5/Pop_Goes_the_Weasel.ogg -O music/song.ogg
$ wget http://yp.shoutcast.com/sbin/tunein-station.m3u?id=760782 -O playlists/760782.m3u $ curl -s -X POST -H 'Content-Length: 0' http://www.shoutcast.com/Home/Top |
jq '.[].ID' |
parallel --eta -k curl -s 'http://yp.shoutcast.com/sbin/tunein-station.m3u?id={}' |
sed '1!s@#EXTM3U@@' |
cat -s > playlists/shoutcast.m3u
$ docker-compose up -d $ docker-compose up -d
``` ```

2496
mpd/shoutcast.m3u Normal file

File diff suppressed because it is too large Load Diff