|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
version=1.0.4
|
|
|
|
scriptVersion=1.0.5
|
|
|
|
if [ -z "$lidarr_artist_path" ]; then
|
|
|
|
if [ -z "$lidarr_artist_path" ]; then
|
|
|
|
lidarr_artist_path="$1"
|
|
|
|
lidarr_artist_path="$1"
|
|
|
|
notfidedBy=Extended_Script
|
|
|
|
notfidedBy=Extended_Script
|
|
|
@ -13,12 +13,12 @@ if [ -f "/config/logs/PlexNotify.txt" ]; then
|
|
|
|
find /config/logs -type f -name "PlexNotify.txt" -size +1024k -delete
|
|
|
|
find /config/logs -type f -name "PlexNotify.txt" -size +1024k -delete
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
exec &>> "/config/logs/PlexNotify.txt"
|
|
|
|
exec &> >(tee -a "/config/logs/PlexNotify.txt")
|
|
|
|
chmod 777 "/config/logs/PlexNotify.txt"
|
|
|
|
chmod 666 "/config/logs/PlexNotify.txt"
|
|
|
|
|
|
|
|
|
|
|
|
log () {
|
|
|
|
log () {
|
|
|
|
m_time=`date "+%F %T"`
|
|
|
|
m_time=`date "+%F %T"`
|
|
|
|
echo $m_time" :: "$1
|
|
|
|
echo $m_time" :: PlexNotify :: $scriptVersion :: "$1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$lidarr_eventtype" == "Test" ]; then
|
|
|
|
if [ "$lidarr_eventtype" == "Test" ]; then
|
|
|
|