Closed sikksakk closed 5 months ago
Hmmm. I'll take a look.
I managed to reproduce the error. It's clearly and awk script issue, but the usual cause of this error ("attempt to use scalar as an array") is not the cause here... at least its not obvious to me and is eluding me at the moment. 😬
I think I tracked this down. You can either pull the development version of the script, or you can add lines to striptracks.sh
as detailed in the commit diff here: https://github.com/TheCaptain989/radarr-striptracks/commit/9f0089b91dc878bf652676ac4a752286cfeb29dc
The detailed debug log was incredibly helpful, BTW!
awesome, thank you for the fantastic support :-) Confirmed working! 🥳
I'm trying to run the script in batch mode (directly on the cmdline, not in docker). i'm getting this error in console (also running directly on one single file):
root@g25:~# find "/mnt/NAS/TV/The Show/" -type f \( -name "*.mkv" -o -name "*.avi" -o -name "*.mp4" \) | while read file; do ./striptracks.sh -f "$file" -a :eng:nor:und -s :eng:nor; done Info|Creating a new log file: ./striptracks.txt awk: cmd. line:61: (FILENAME=- FNR=5) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=5) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=5) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array awk: cmd. line:61: (FILENAME=- FNR=4) fatal: attempt to use scalar 'AudioCommand' as an array
Log https://paste.mozilla.org/VCNPkEpcAny idea what this could be?