|
|
tbrtv-playlist-to-pls.sh - bitreich-tv - meme tv encoding and streaming |
|
|
 |
git clone git://src.adamsgaard.dk/bitreich-tv (git://src.adamsgaard.dk) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
tbrtv-playlist-to-pls.sh (282B) |
|
|
|
--- |
|
|
|
1 #!/bin/sh |
|
|
|
2 # supply output from brtv-generate-playlist.sh as stdin |
|
|
|
3 |
|
|
|
4 printf '[playlist]\n' |
|
|
|
5 |
|
|
|
6 i=0 |
|
|
|
7 while IFS=' |
|
|
|
8 ' read -r url; do |
|
|
|
9 i=$((i + 1)) |
|
|
|
10 f="${url##*/}" |
|
|
|
11 printf 'File%d=%s\n' "$i" "$url" |
|
|
|
12 printf 'Title%d=bitreich-tv - #%s\n' "$i" "${f%.*}" |
|
|
|
13 done |
|
|
|
14 |
|
|
|
15 printf 'NumberOfEntries=%d\n' "$i" |
|