Skip to content

Commit

Permalink
Remove discovery failure check in raspotify-crash-report-generator.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLG1979 committed Dec 22, 2022
1 parent 2db9a99 commit 3b08b0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions raspotify/usr/bin/raspotify-crash-report-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ librespot="LIBRESPOT_"
logs=$(journalctl -u raspotify --since "1min ago" -q)

fail_count=$(echo "$logs" | grep -o "raspotify.service: Failed" | wc -l)
# Discovery already has retries built into it in librespot.
discovery_fail_count=$(echo "$logs" | grep -o "Could not initialise discovery:" | wc -l)

{
echo -e "-- System Info --\n"
Expand Down Expand Up @@ -55,7 +53,7 @@ done <$config

systemctl reset-failed raspotify

if [ "$fail_count" -lt 6 ] && [ "$discovery_fail_count" -eq 0 ]; then
if [ "$fail_count" -lt 6 ]; then
sleep 10
systemctl restart raspotify
fi

0 comments on commit 3b08b0c

Please sign in to comment.