Sorry for the late reply. Internet went out before I could post my findings.
I figured why my printfs statements weren’t working.
I copied them from the other script I used as reference and the vars were wrong in it.
I overlooked it when copy pasting.
$sonarr_release_seasonnumber & $sonarr_release_episodenumbers
$sonarr_episodefile_seasonnumber & $sonarr_episodefile_episodenumbers
when used On Download/On Upgrade. As stated here…
One final thing. Is there anyway to run this script for all episodes already downloaded?
If not i’m sure there is a way to do it with bash only. Maybe you could point me in the direction?
I’m thinking using “find” command to list all episodes and a way to save the required data to the above vars and run the above script in a loop for each file?
Gotta do some research.
Thanks @Thirrian for all your help!