Parse quality even if it is an integer

Signed-off-by: Michal Čihař <michal@cihar.com>