l radio: be more http compliant
This commit is contained in:
parent
8bc2a64f49
commit
355ebd73ee
@ -44,7 +44,7 @@ let
|
|||||||
if [[ "$current_track" =~ ^the_playlist/music/.* ]]; then
|
if [[ "$current_track" =~ ^the_playlist/music/.* ]]; then
|
||||||
${pkgs.attr}/bin/setfattr -n user.skip_count -v 0 "$music_dir"/"$current_track"
|
${pkgs.attr}/bin/setfattr -n user.skip_count -v 0 "$music_dir"/"$current_track"
|
||||||
else
|
else
|
||||||
mv "$music_dir"/"$current_track" "$music_dir"/the_playlist/music/
|
mv "$music_dir"/"$current_track" "$music_dir"/the_playlist/music/ || :
|
||||||
fi
|
fi
|
||||||
echo good: "$track_infos"
|
echo good: "$track_infos"
|
||||||
'';
|
'';
|
||||||
@ -278,6 +278,9 @@ in {
|
|||||||
script = ''
|
script = ''
|
||||||
case "$Method $Request_URI" in
|
case "$Method $Request_URI" in
|
||||||
"GET /current")
|
"GET /current")
|
||||||
|
printf 'HTTP/1.1 200 OK\r\n'
|
||||||
|
printf 'Connection: close\r\n'
|
||||||
|
printf '\r\n'
|
||||||
${print_current}/bin/print_current
|
${print_current}/bin/print_current
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user