@Rick7C2 wrote:
I'm trying to add the following exec commands to make .strm files for kodi but keep getting YAML Error.
The config works fine before adding the exec line.
Here is the exec line.
exec: 'mkdir -p "/root/test Media Server/TV Shows/{{ tvdb_series_name|pathscrub}}/Season {{ tvdb_season|pad(2) }}/" && echo 'plugin://plugin.video.metalliq/tv/play/{{tvdb_id}}/{{ tvdb_season|pad(2) }}/{{ tvdb_episode|pad(2) }}/library' >"/root/test Media Server/TV Shows/{{ tvdb_series_name|pathscrub}}/Season {{ tvdb_season|pad(2) }}//{{ tvdb_series_name|pathscrub}} - {{tvdb_ep_id}} - {{tvdb_ep_air_date}} - {% if tvdb_ep_name|default(False) %}.strm"'
I thought maybe it was the "&&" so I split the command into two like so...
exec: 'mkdir -p "/root/test Media Server/TV Shows/{{ tvdb_series_name|pathscrub}}/Season {{ tvdb_season|pad(2) }}/"'
exec: 'echo 'plugin://plugin.video.metalliq/tv/play/{{tvdb_id}}/{{ tvdb_season|pad(2) }}/{{ tvdb_episode|pad(2) }}/library' >"/root/test Media Server/TV Shows/{{ tvdb_series_name|pathscrub}}/Season {{ tvdb_season|pad(2) }}//{{ tvdb_series_name|pathscrub}} - {{tvdb_ep_id}} - {{tvdb_ep_air_date}} - {% if tvdb_ep_name|default(False) %}.strm"'But still getting YAML Error when trying to save config.
Any Ideas?
Posts: 1
Participants: 1