i've run into instances of people saving rar-compressed files as .cbz, and there's no reason we shouldn't handle this (and vice-versa, and if we add additional format support in future)
the reason we only check extensions is that it's way, way quicker to list huge directories than to read the headers of every single file, but that doesn't matter once we've committed to extracting one particular file; we may as well work out what the thing is manually
i've run into instances of people saving rar-compressed files as .cbz, and there's no reason we shouldn't handle this (and vice-versa, and if we add additional format support in future)
the reason we only check extensions is that it's way, way quicker to list huge directories than to read the headers of every single file, but that doesn't matter once we've committed to extracting one particular file; we may as well work out what the thing is manually