diff --git a/entrypoint.sh b/entrypoint.sh index d3e8cb8..d256510 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ USER_ID=${uid:-9001} GROUP_ID=${gid:-9001} -echo "UID : $USER_ID \nGID : $GROUP_ID" +echo -e "UID : $USER_ID \nGID : $GROUP_ID" chown -R $USER_ID:$GROUP_ID /home/plugins chown -R $USER_ID:$GROUP_ID /home/script diff --git a/streamlink-recorder.sh b/streamlink-recorder.sh index 087aeac..cf06dfb 100644 --- a/streamlink-recorder.sh +++ b/streamlink-recorder.sh @@ -13,6 +13,8 @@ while [ true ]; do # Download and convert stream streamlink $streamOptions $streamLink $streamQuality --stdout | ffmpeg -fflags +discardcorrupt -i pipe:0 -c copy -bsf:a aac_adtstoasc -f mp4 -loglevel error -y "/home/download/${streamName} - ${streamDate} - ${streamTitle}.mp4" + else + echo $streamInfo | jq -r '.error' fi sleep ${streamPoll:-60}s done