filebot / filebot-docker

Docker build files for FileBot
https://hub.docker.com/r/rednoah/filebot/
Apache License 2.0
55 stars 18 forks source link

If an action fails due to an invalid license, it shouldn't be added to the excludes file. #24

Open BrianAllred opened 4 months ago

BrianAllred commented 4 months ago

Related to #23, having to manually delete lines from the excludes file when the license is suddenly not valid anymore is also very cumbersome.

rednoah commented 4 months ago

That would lead to an infinite loop of try, fail, try, fail, try, fail, ad infinitum (if a new license is never installed) which is exactly that kind of behaviour that the --def excludeList option is designed to stop.

You can however add your own license check before calling the amc script call and send yourself an email:

if filebot -script fn:sysinfo | grep EXPIRED; then
  # send email to myself
  exit 1
fi

# do things that require a valid license