Thank you, that worked. However, now when I go to OliveTin this is what I get when I try to setup Tubi for example:
Standard output:JSON response from https://local:8089:9443/api/stacks?type=2&method=string&endpointId=2:
Standard error:exit status 1
+ dvr=local:8089:8089
++ basename /config/tubi-for-channels.sh
+ extension=tubi-for-channels.sh
+ extension=tubi-for-channels
+ cp /config/tubi-for-channels.env /tmp
+ envFile=/tmp/tubi-for-channels.env
+ [[ -n local:8089 ]]
+ extensionURL=local:8089:7778
+ [[ none == \n\o\n\e ]]
+ tubiUser=
+ [[ none == \n\o\n\e ]]
+ tubiPass=
+ [[ # == \# ]]
+ cdvrStartingChannel=
+ [[ -n '' ]]
+ cdvrIgnoreM3UNumbers=
+ [[ -n '' ]]
+ curl -s -o /dev/null http://local:8089:7778
+ envVars=("TAG=$2" "HOST_PORT=$3" "TUBI_PORT=$4" "TUBI_USER=$tubiUser" "TUBI_PASS=$tubiPass" "CDVR_STARTING_CHANNEL=$7")
+ printf '%s\n' TAG=latest HOST_PORT=7778 TUBI_PORT=7777 TUBI_USER= TUBI_PASS= CDVR_STARTING_CHANNEL=#
+ sed -i /=#/d /tmp/tubi-for-channels.env
+ /config/portainerstack.sh tubi-for-channels
+ stackName=tubi-for-channels
+ portainerHost=local:8089
+ [[ -n 9443 ]]
+ portainerPort=9443
+ curl -s -o /dev/null http://local:8089:9000
+ portainerURL='https://local:8089:9443/api/stacks?type=2&method=string&endpointId=2'
+ portainerToken=ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c=
+ cp /config/tubi-for-channels.yaml /tmp
+ stackFile=/tmp/tubi-for-channels.yaml
+ envFile=/tmp/tubi-for-channels.env
++ grep DVR_SHARE= /tmp/tubi-for-channels.env
++ grep -v /
++ awk -F= '{print $2}'
+ dockerVolume=
++ grep VOL_EXTERNAL= /tmp/tubi-for-channels.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ volumeExternal=
++ grep VOL_NAME= /tmp/tubi-for-channels.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ volumeName=
++ grep NETWORK_MODE= /tmp/tubi-for-channels.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ networkMode=
++ grep DEVICES= /tmp/tubi-for-channels.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ transcoderDevice=
++ grep CDVR_CONTAINER= /tmp/tubi-for-channels.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ stackNumber=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ sed 's/\\/\\\\/g' /tmp/tubi-for-channels.yaml
++ sed 's/"/\\"/g'
++ awk '{printf "%s\\n", $0}'
+ stackContent='version: '\''3.9'\''\nservices:\n tubi-for-channels:\n # 2025.01.27\n # GitHub home for this project with setup instructions: https://github.com/jgomez177/tubi-for-channels\n # Docker container home for this project: https://ghcr.io/jgomez177/tubi-for-channels\n image: ghcr.io/jgomez177/tubi-for-channels:${TAG}\n container_name: tubi-for-channels\n ports:\n - ${HOST_PORT}:${TUBI_PORT} # Use the recommended port number, or optionally change it if the port is already in use on your host.\n environment:\n - TUBI_PORT=${TUBI_PORT} # Change the port this container uses internally.\n - TUBI_USER=${TUBI_USER} # Optional variable to sign into Tubi Account.\n - TUBI_PASS=${TUBI_PASS} # Optional variable to sign into Tubi Account.\n restart: unless-stopped\n\n # Default Environment variables can be found below under stderr -- copy and paste into Portainer-Stacks Environment variables section in Advanced mode\n'
+ stackEnvVars='['
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},{"name": "TUBI_PORT", "value": "7777"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},{"name": "TUBI_PORT", "value": "7777"},{"name": "TUBI_USER", "value": ""},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},{"name": "TUBI_PORT", "value": "7777"},{"name": "TUBI_USER", "value": ""},{"name": "TUBI_PASS", "value": ""},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},{"name": "TUBI_PORT", "value": "7777"},{"name": "TUBI_USER", "value": ""},{"name": "TUBI_PASS", "value": ""}]'
++ cat
+ stackJSON='{
"Name": "tubi-for-channels",
"SwarmID": "",
"StackFileContent": "version: '\''3.9'\''\nservices:\n tubi-for-channels:\n # 2025.01.27\n # GitHub home for this project with setup instructions: https://github.com/jgomez177/tubi-for-channels\n # Docker container home for this project: https://ghcr.io/jgomez177/tubi-for-channels\n image: ghcr.io/jgomez177/tubi-for-channels:${TAG}\n container_name: tubi-for-channels\n ports:\n - ${HOST_PORT}:${TUBI_PORT} # Use the recommended port number, or optionally change it if the port is already in use on your host.\n environment:\n - TUBI_PORT=${TUBI_PORT} # Change the port this container uses internally.\n - TUBI_USER=${TUBI_USER} # Optional variable to sign into Tubi Account.\n - TUBI_PASS=${TUBI_PASS} # Optional variable to sign into Tubi Account.\n restart: unless-stopped\n\n # Default Environment variables can be found below under stderr -- copy and paste into Portainer-Stacks Environment variables section in Advanced mode\n",
"Env": [{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},{"name": "TUBI_PORT", "value": "7777"},{"name": "TUBI_USER", "value": ""},{"name": "TUBI_PASS", "value": ""}]
}'
+ echo 'JSON response from https://local:8089:9443/api/stacks?type=2&method=string&endpointId=2:'
++ curl -k -X POST -H 'Content-Type: application/json' -H 'X-API-Key: ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c=' -d '{
"Name": "tubi-for-channels",
"SwarmID": "",
"StackFileContent": "version: '\''3.9'\''\nservices:\n tubi-for-channels:\n # 2025.01.27\n # GitHub home for this project with setup instructions: https://github.com/jgomez177/tubi-for-channels\n # Docker container home for this project: https://ghcr.io/jgomez177/tubi-for-channels\n image: ghcr.io/jgomez177/tubi-for-channels:${TAG}\n container_name: tubi-for-channels\n ports:\n - ${HOST_PORT}:${TUBI_PORT} # Use the recommended port number, or optionally change it if the port is already in use on your host.\n environment:\n - TUBI_PORT=${TUBI_PORT} # Change the port this container uses internally.\n - TUBI_USER=${TUBI_USER} # Optional variable to sign into Tubi Account.\n - TUBI_PASS=${TUBI_PASS} # Optional variable to sign into Tubi Account.\n restart: unless-stopped\n\n # Default Environment variables can be found below under stderr -- copy and paste into Portainer-Stacks Environment variables section in Advanced mode\n",
"Env": [{"name": "TAG", "value": "latest"},{"name": "HOST_PORT", "value": "7778"},{"name": "TUBI_PORT", "value": "7777"},{"name": "TUBI_USER", "value": ""},{"name": "TUBI_PASS", "value": ""}]
}' 'https://local:8089:9443/api/stacks?type=2&method=string&endpointId=2'
curl: (3) URL using bad/illegal format or missing URL
+ portainerResponse=
+ [[ -z '' ]]
+ exit 1
+ [[ 1 == 1 ]]
+ exit 1
Any idea what I'm doing wrong? It does not show up as a source in Channels and I have no idea how to find the link and epg to add as a source.