Replacing episodes cause XBMC to lose them until manual rescan

I think I’ve found a bug - let me know if I need to report this elsewhere:

When replacing existing files by clicking on search next to an already-downloaded episode, XBMC loses the episode altogether. I have update library and clean library ticked.

I’d guess this is down to XBMC just doing the clean and not the update, because you can’t do both at the same time?

Is this a known problem with a workaround?

The update is triggered first, so the clean should fail, but that depends on how XBMC handles it. This is already known: https://trello.com/c/qrr1RgdX/604-xbmc-clean-library-is-triggered-while-library-is-updating

The only workaround is disable the cleaning after update in drone.