make YouTube format selection method generic