Not your fault, there is no "right" way. The program is going forward, and we cannot guarantee the backward compatibility for such intrusive plugins as yours.
The above mentioned changes simplify the CoverBrowser plugin a lot, making unnecessary all tricks like
https://github.com/joshuacant/Projec....lua#L266-L269