Extracted if variables to make it readable

Extracted the variables as you requested. Not too familiar with the flexget coding styles yet, but tried to come up with meaningful variables name.