Customizing Comskip

I wanted to add a couple of parameters to Comskip:
always_keep_last_seconds=300
always_keep_first_seconds=120

But I did not find a comskip.ini file. What is the best way to go about this?

Can I just drop a comskip.ini with the above 2 lines in C:\ProgramData\ChannelsDVR\data?

1 Like

You can use the API.

curl.exe -XPUT http://127.0.0.1:8089/comskip/ini/always_keep_last_seconds/300

See New comskip.ini API vs Override comskip.ini file

I tried to run this command again and I get the following error from curl:
(5) Could not resolve proxy: put

Maybe you used -xput instead of -XPUT

Or you had a space between “x” and “put”.

That was it. Thanks!

1 Like

This helped a lot kept missing final Jeopardy answer set to keep last 300 seconds and now is working great.

Is there a way to reprocess a total Show and not each episode one by one ?

No. Because the process runs on individual files, each file must be individually queued.

Thanks

There should be a way to select a whole show for commercial detect ... In my case I made a change to keep the last 5 minutes ... So I want to run them on series I want to keep.

Where do you run this (curl.exe commands)? When i try via web browser (Brave) it just does a web search. There is no "Terminal" option on the Pi image server GUI that i know of.

You just run it from a terminal prompt on another machine. if you are using Windows then download and install curl and run from a command prompt. In either case change the IP address to your Channels server

Do you know how to remove an entry you might have made by mistake when updating the INI ? I know their is an API command but I can't find it in the forum.

DELETE the node that contains the value you didn't want.

pwsh> curl -XPUT http://192.168.88.16:8089/comskip/ini/min_commercialbreak/45
true

image

pwsh> curl -XDELETE http://192.168.88.16:8089/comskip/ini/min_commercialbreak
true

image

http://<IP>:8089/comskip will show you if you've overridden anything.

I believe it's:

DELETE /comskip/ini/${key}

@dschaper
Thanks.