AnthonyMusgrove / Emby-ScripterX

Run custom external application or script (batch/bash/powershell/php/python/node.js/custom) on various events within the Emby Server.
https://emby-scripterx.com
78 stars 6 forks source link

Supression / Queueing System: onItemAdded, onItemUpdated #13

Closed AnthonyMusgrove closed 2 years ago

AnthonyMusgrove commented 4 years ago

Is your feature request related to a problem? Please describe. I added a new series of 2 seasons and 10 episodes per season

An event was fired for each of 1 series, 2 seasons, 20 episodes

it would be great if there was an option to slow down the event firing and aggregate changes into more meaningful parcels once a steady library state is achieved.

ie report on the top level change

In the case above - Fire once against series

3rd season with 1st three episodes added - Fire Once Against Season

3 episodes added - Fire 3 times for each episode

Multiple tracks on same album - Fire once against album.

This is even worse with itemupdated especially if its being recorded - get numerous events as it progresses - then when it gets its metadata etc etc - one i have avoided so far

The issue Anthony may have is that these events are the events Emby works with and produces normally as things change