deluge-labelplus icon indicating copy to clipboard operation
deluge-labelplus copied to clipboard

Race condition when applying autolabel based on vanilla label?

Open deepfriedmind opened this issue 7 years ago • 2 comments

First of all, thanks for a great plugin!

I use Deluge with Sonarr. When Sonarr grabs a release and sends it to Deluge, it automatically applies a label (using the vanilla label plugin). In LabelPlus I have set up a label (sonarr) using an Autolabel action of [Label] [is] [ignore-case] [sonarr] to decide where the files get moved to after completion.

This has been working fine for a while now, but I just got a new NAS and re-did my setup. Now it seems that there's a slight delay before the vanilla label is applied or something, because LabelPlus immediately adds the wrong label (since it thinks there is no vanilla label).

Does my explanation make sense? Do you have any ideas about what could be done? Is there an order of evaluation that could be changed or something like that? Could it make a difference if I edited labelplus.conf and changed the order of the labels in the JSON structure? My best idea right now is to create a really complicated regex pattern that would take long enough to evaluate for the vanilla label to have been set :)

deepfriedmind avatar Jan 24 '17 19:01 deepfriedmind