I am trying to make a script to create dirs and a .strm file with text inside for kodi.
Currently this is my script…
#!/bin/bash
mkdir -p "/downloads/kodi/tv/$sonarr_series_title/Season $sonarr_episodefile_seasonnumber" && echo 'plugin://plugin.video.metalliq/tv/play/$sonarr_series_tvdbid/$sonarr_episodefile_seasonnumber/$sonarr_episodefile_episodenumbers/library' >"/downloads/kodi/tv/$sonarr_series_title/Season $sonarr_episodefile_seasonnumber/$sonarr_series_title - S$sonarr_episodefile_seasonnumberE$sonarr_episodefile_episodenumbers - $sonarr_release_episodeairdates.strm"
The folders are created with correct data but the strm files contents don’t seem to be getting the data from sonarr.
The contents of the strm file are exactly
plugin://plugin.video.metalliq/tv/play/$sonarr_series_tvdbid/$sonarr_episodefile_seasonnumber/$sonarr_episodefile_episodenumbers/library
Instead of passing the actual tvdbid and season episode number.
Why does it work for creating dirs but not for the content in the strm file?
I use this same script with filebot in the past with modified vars and it works fine.