'If terms contains a term with the termtype \'video quality\'
then this function convert it into a flexget Quality
else it return None
:param terms: Array of Term
:param session:
:return: flexget.utils.Quality'

@cache_required
@with_session
def parse_terms_to_quality(self, terms, session=None):

    video_quality_description = next((term for term in terms if (term.get(u'term_type_id') == T411_TERM_TYPE_ID_VIDEO_QUALITY)), None)
    if (video_quality_description is not None):
        video_quality = T411_VIDEO_QUALITY_MAP.get(video_quality_description.get(u'term_id'))
        return video_quality
    else:
        return None
