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

Episodes - Virtual and Missing #20

Closed Penkethboy closed 4 years ago

Penkethboy commented 4 years ago

Is your feature request related to a problem? Please describe. Emby has a concept of Virtual and Missing episodes - can these be filtered out of events

Describe the solution you'd like Future episodes are of type virtual - they only appear on the upcoming tab of a tv library Missing episodes - if the feature is enabled - are any that the library does not have per series

Additional context The issue comes that when say adding a new series to a tv library (possibly Mixed content as well) additional itemadded/itemrenoved etc etc events are created for these types of episode

Emby does not clean these types of episodes up till after a library scan / and the virtual episode has passed into history

So adding a new episode to any series can kick emby into creating "unwanted" events.

An alternative would be to have say a variable item.episode.type of real, virtual or missing - so they could be filtered that way

AnthonyMusgrove commented 4 years ago

Absolutely, there is a property on an item called IsVirtual, I'll get a list of all the extra properties that I haven't yet included and post them up and see which ones will be useful to include as tokens :)

Penkethboy commented 4 years ago

via the api isVirtual=False removes them from a request - so that might be enough

AnthonyMusgrove commented 4 years ago

Added %item.isvirtual% to Item tokens, do you think this will be sufficient mate? (I won't close the issue until its confirmed)

Penkethboy commented 4 years ago

if that picks up future and missing episodes - then that would be Ok for me is that in a released version yet to test?

AnthonyMusgrove commented 4 years ago

It's now up in released version 2.3.0 :)

Penkethboy commented 4 years ago

cool - thanks again

AnthonyMusgrove commented 4 years ago

You're welcome mate :)

Penkethboy commented 4 years ago

Hi Anthony

Ignore this forgot isvirtual is a variable now!

Sorry

AnthonyMusgrove commented 4 years ago

That's okay mate, no problems at all :) Thank you for the update!