I am new to Sonarr and Ubuntu… I just wanted to know what do I need to do in a bash script to access the Series Path… do I need to just put ${sonarr_series_path}? Do I pass that as argument on the UI? How do I do that? I read https://github.com/Sonarr/Sonarr/wiki/Custom-Post-Processing-Scripts, but it was not clear to me how to use it on a bash script.
I tried to put Series_Path on the arguments but that is just what is passed down to the script. I am trying $(sonarr_series_path) now (next time a tv show episode is downloaded).
Yes in the script, Sonarr passes the variables as environmental. So the whole bunch can be called whenever you want in the script. Do an exercise put this in your script.
#!/bin/bash
env > /tmp/env_var.txt
Let it run for a download, grab or rename, then check the file env_var.txt. You can later use that file to source your script in case you want to test how it works.
. /tmp/env_var.txt
Don’t forget to wrap the variables in double quotes.