ConfusedPolarBear / intro-skipper

Fingerprint audio to automatically detect and skip intro sequences in Jellyfin
GNU General Public License v3.0
988 stars 392 forks source link

Trigger intro detection after adding media #115

Open Yankees4life opened 1 year ago

Yankees4life commented 1 year ago

I would like the feature to have an episode analyzed after being imported. I think that'll prevent me from going to schedule tasks all the time and running it to analyze the intros

Dnkhatri commented 1 year ago

I would like the feature to have an episode analyzed after being imported. I think that'll prevent me from going to schedule tasks all the time and running it to analyze the intros

I just set it to run hourly as it only runs on files that have not been fingerprinted before it does not take to much processing power.

gaming09 commented 1 year ago

I would like the feature to have an episode analyzed after being imported. I think that'll prevent me from going to schedule tasks all the time and running it to analyze the intros

Would love to see this

pjpm15 commented 1 year ago

If you use Sonarr, you can setup a webhook that will call an API request on import.

First, you have to get the Intro Detection Scheduled Task ID.

I used the Jellyfin built in swagger to get the id.

http://your_ip_here:port/api-docs/swagger/index.html

Then setup a Webhook connection in Sonarr.

Use POST method, Add this on URL: http://your_ip_here:port/ScheduledTasks/Running/?api_key=

jack-mil commented 1 year ago

I have implemented the webhook which works well. But it would also be nice to have it as a task trigger method. Or is that not supported by Jellyfin?