'Return The quality from the scene episode HTML row.'

@staticmethod
def _episodeQuality(torrent_rows):

    file_quality = torrent_rows(u'td')[1].find(u'a')[u'href'].replace(u'_', u'    ')
    logger.log(u'Episode    quality:    {0}'.format(file_quality), logger.DEBUG)
    def checkName(options, func):
        return func([re.search(option, file_quality, re.I) for option in options])
    dvdOptions = checkName([u'dvd', u'dvdrip', u'dvdmux', u'DVD9', u'DVD5'], any)
    bluRayOptions = checkName([u'BD', u'BDmux', u'BDrip', u'BRrip', u'Bluray'], any)
    sdOptions = checkName([u'h264', u'divx', u'XviD', u'tv', u'TVrip', u'SATRip', u'DTTrip', u'Mpeg2'], any)
    hdOptions = checkName([u'720p'], any)
    fullHD = checkName([u'1080p', u'fullHD'], any)
    webdl = checkName([u'webdl', u'webmux', u'webrip', u'dl-webmux', u'web-dlmux', u'webdl-mux', u'web-dl', u'webdlmux', u'dlmux'], any)
    if (sdOptions and (not dvdOptions) and (not fullHD) and (not hdOptions)):
        return Quality.SDTV
    elif dvdOptions:
        return Quality.SDDVD
    elif (hdOptions and (not bluRayOptions) and (not fullHD) and (not webdl)):
        return Quality.HDTV
    elif ((not hdOptions) and (not bluRayOptions) and fullHD and (not webdl)):
        return Quality.FULLHDTV
    elif (hdOptions and (not bluRayOptions) and (not fullHD) and webdl):
        return Quality.HDWEBDL
    elif ((not hdOptions) and (not bluRayOptions) and fullHD and webdl):
        return Quality.FULLHDWEBDL
    elif (bluRayOptions and hdOptions and (not fullHD)):
        return Quality.HDBLURAY
    elif (bluRayOptions and fullHD and (not hdOptions)):
        return Quality.FULLHDBLURAY
    else:
        return Quality.UNKNOWN
