Merge pull request #892 from TheCaptain989/radarr-striptracks

radarr: striptracks release 2.5.1
This commit is contained in:
Adam 2024-05-02 17:05:00 +01:00 committed by GitHub
commit 7804b50acc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -288,7 +288,7 @@ function log {(
while read -r
do
# shellcheck disable=2046
echo $(date +"%Y-%-m-%-d %H:%M:%S.%1N")"|[$striptracks_pid]$REPLY" >>"$striptracks_log"
echo $(date +"%Y-%m-%d %H:%M:%S.%1N")"|[$striptracks_pid]$REPLY" >>"$striptracks_log"
local striptracks_filesize=$(stat -c %s "$striptracks_log")
if [ $striptracks_filesize -gt $striptracks_maxlogsize ]
then
@ -1216,6 +1216,10 @@ BEGIN {
MKVMerge = "/usr/bin/mkvmerge"
FS = "[\t\n: ]"
IGNORECASE = 1
split("", AudioCommand)
split("", SubsCommand)
split("", AudRmvLog)
split("", SubsRmvLog)
}
/^Track ID/ {
FieldCount = split($0, Fields)