Skip to content

Commit

Permalink
Script tweaks
Browse files Browse the repository at this point in the history
- Print UID/GID properly
- Print error returned from streamlink
  • Loading branch information
kjake committed Mar 24, 2024
1 parent 9553e05 commit 3fe5f99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions streamlink-recorder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3fe5f99

Please sign in to comment.