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
76 stars 6 forks source link

onLibraryScanComplete - add scan result #23

Closed Penkethboy closed 2 years ago

Penkethboy commented 4 years ago

Is your feature request related to a problem? Please describe. Can you add %task.result% - probably as %scan.result% to the lib scan complete event as its missing

Describe the solution you'd like task.result exists for onScheduledTaskEnded - can this be added to lib scan complete

As a replacement for issue 4

AnthonyMusgrove commented 4 years ago

Thank you mate I'll check this one out, Im hoping it's possible because that would make a lot of sense :)

AnthonyMusgrove commented 4 years ago

RE Issue #24, the best I can do so far is add an %was.cancelled% token to onLibraryScanComplete. There isn't much information provided at this stage, so I'm still investigating on whether or not it is possible to get additional failedstates for library scanning. Try using the %was.cancelled% token and let me know if its 'true' if there is a scanning error (I'm very curious on how this will behave)

thanks mate!

was_cancelled