|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.012"
|
|
|
|
scriptVersion="1.0.1"
|
|
|
|
arrEventType="$sonarr_eventtype"
|
|
|
|
arrEventType="$sonarr_eventtype"
|
|
|
|
arrItemId=$sonarr_series_id
|
|
|
|
arrItemId=$sonarr_series_id
|
|
|
|
tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426"
|
|
|
|
tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426"
|
|
|
@ -40,7 +40,10 @@ if [ -f "/config/logs/Extras.txt" ]; then
|
|
|
|
find /config/logs -type f -name "Extras.txt" -size +1024k -delete
|
|
|
|
find /config/logs -type f -name "Extras.txt" -size +1024k -delete
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
touch "/config/logs/Extras.txt"
|
|
|
|
if [ ! -f "/config/logs/Extras.txt" ]; then
|
|
|
|
|
|
|
|
touch "/config/logs/Extras.txt"
|
|
|
|
|
|
|
|
chmod 666 "/config/logs/Extras.txt"
|
|
|
|
|
|
|
|
fi
|
|
|
|
exec &> >(tee -a "/config/logs/Extras.txt")
|
|
|
|
exec &> >(tee -a "/config/logs/Extras.txt")
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$arrEventType" == "Test" ]; then
|
|
|
|
if [ "$arrEventType" == "Test" ]; then
|
|
|
|