Refactor OpenELEC downloading