Yes, this is the right way--the same src file could go to multiple dests, so the key has to be the dest, not the src.  Looks like it got flipped here:
https://github.com/learningequality/ka-lite/commit/af20fcae190d710ceb7b34ef794eb7de9a51189d