Open robdogaz opened 2 weeks ago
This looks fine assuming that you've added a volume mount in your comcutter container that maps /library
to your media location /share/CACHEDEV1_DATA/NAS
.
Did you check the full path to confirm that the file exists in the comcutter comtainer with something like ls -l /library/TV Shows/Big Noon Kickoff/Big Noon Kickoff 2024_09_21_07_00_00.ts
?
What error is getting thrown if you check the logs in data/logging
?
!/bin/bash
filepath="$@"
stripped=
echo "$filepath" | cut -c 26-
changed="/library$stripped"curl -X POST \ http://localhost:9090/comskip \ -H 'Content-Type: application/json' \ -d "{\"api\": \"RcAAiES9hC0nyvdaMy0fYrx6nHK2dZKyopAo4e6xV4Q0I88tdXQiRrxwegwhbNelt1lgaEzzZaZA55ysTMgn8ShS8FU69he3xNxiYM6WLbbSqKeXZqJTusriFs0LVlKF\", \"file\": \"${changed}\"}"
I have this to test in contrainer
filepath="/share/CACHEDEV1_DATA/NAS/TV Shows/Big Noon Kickoff/Big Noon Kickoff 2024_09_21_07_00_00.ts" stripped=
echo "$filepath" | cut -c 26-
changed="/library$stripped" echo "$changed"I get
root@75b043eeb2e6:/# filepath="/share/CACHEDEV1_DATA/NAS/TV Shows/Big Noon Kickoff/Big Noon Kickoff 2024_09_21_07_00_00.ts" root@75b043eeb2e6:/# stripped=
echo "$filepath" | cut -c 26-
root@75b043eeb2e6:/# changed="/library$stripped" root@75b043eeb2e6:/# echo "$changed" /library/TV Shows/Big Noon Kickoff/Big Noon Kickoff 2024_09_21_07_00_00.tsHere is the comrun.sh on the server
!/bin/bash
filepath="$@"
stripped=
echo "$filepath" | cut -c 26-
changed="/library$stripped"curl -X POST \ http://localhost:9090/comskip \ -H 'Content-Type: application/json' \ -d "{\"api\": \"RcAAiES9hC0nyvdaMy0fYrx6nHK2dZKyopAo4e6xV4Q0I88tdXQiRrxwegwhbNelt1lgaEzzZaZA55ysTMgn8ShS8FU69he3xNxiYM6WLbbSqKeXZqJTusriFs0LVlKF\", \"file\": \"${changed}\"}"
I can't seem to get it to run