'Return The quality from the scene episode File
:param name: Episode filename to analyse
:param anime: Boolean to indicate if the show we\'re resolving is Anime
:return: Quality prefix'

@staticmethod
def sceneQuality(name, anime=False):

    ret = Quality.UNKNOWN
    if (not name):
        return ret
    name = os.path.basename(name)
    check_name = (lambda l, func: func([re.search(x, name, re.I) for x in l]))
    if anime:
        dvdOptions = check_name([u'dvd', u'dvdrip'], any)
        blueRayOptions = check_name([u'BD', u'blue?-?ray'], any)
        sdOptions = check_name([u'360p', u'480p', u'848x480', u'XviD'], any)
        hdOptions = check_name([u'720p', u'1280x720', u'960x720'], any)
        fullHD = check_name([u'1080p', u'1920x1080'], any)
        if (sdOptions and (not blueRayOptions) and (not dvdOptions)):
            ret = Quality.SDTV
        elif dvdOptions:
            ret = Quality.SDDVD
        elif (hdOptions and (not blueRayOptions) and (not fullHD)):
            ret = Quality.HDTV
        elif (fullHD and (not blueRayOptions) and (not hdOptions)):
            ret = Quality.FULLHDTV
        elif (hdOptions and (not blueRayOptions) and (not fullHD)):
            ret = Quality.HDWEBDL
        elif (blueRayOptions and hdOptions and (not fullHD)):
            ret = Quality.HDBLURAY
        elif (blueRayOptions and fullHD and (not hdOptions)):
            ret = Quality.FULLHDBLURAY
        return ret
    if (check_name([u'480p|\\bweb\\b|web.?dl|web(rip|mux|hd)|[sph]d.?tv|dsr|tv(rip|mux)|satrip', u'xvid|divx|[xh].?26[45]'], all) and (not check_name([u'(720|1080)[pi]'], all)) and (not check_name([u'hr.ws.pdtv.[xh].?26[45]'], any))):
        ret = Quality.SDTV
    elif (check_name([u'dvd(rip|mux)|b[rd](rip|mux)|blue?-?ray', u'xvid|divx|[xh].?26[45]'], all) and (not check_name([u'(720|1080)[pi]'], all)) and (not check_name([u'hr.ws.pdtv.[xh].?26[45]'], any))):
        ret = Quality.SDDVD
    elif (check_name([u'720p', u'hd.?tv', u'[xh].?26[45]'], all) or (check_name([u'hr.ws.pdtv.[xh].?26[45]'], any) and (not check_name([u'1080[pi]'], all)))):
        ret = Quality.HDTV
    elif (check_name([u'720p|1080i', u'hd.?tv', u'mpeg-?2'], all) or check_name([u'1080[pi].hdtv', u'h.?26[45]'], all)):
        ret = Quality.RAWHDTV
    elif check_name([u'1080p', u'hd.?tv', u'[xh].?26[45]'], all):
        ret = Quality.FULLHDTV
    elif (check_name([u'720p', u'\\bweb\\b|web.?dl|web(rip|mux|hd)'], all) or check_name([u'720p', u'itunes', u'[xh].?26[45]'], all)):
        ret = Quality.HDWEBDL
    elif (check_name([u'1080p', u'\\bweb\\b|web.?dl|web(rip|mux|hd)'], all) or check_name([u'1080p', u'itunes', u'[xh].?26[45]'], all)):
        ret = Quality.FULLHDWEBDL
    elif check_name([u'720p', u'blue?-?ray|hddvd|b[rd](rip|mux)', u'[xh].?26[45]'], all):
        ret = Quality.HDBLURAY
    elif check_name([u'1080p', u'blue?-?ray|hddvd|b[rd](rip|mux)', u'[xh].?26[45]'], all):
        ret = Quality.FULLHDBLURAY
    elif check_name([u'2160p', u'hd.?tv', u'[xh].?26[45]'], all):
        ret = Quality.UHD_4K_TV
    elif check_name([u'4320p', u'hd.?tv', u'[xh].?26[45]'], all):
        ret = Quality.UHD_8K_TV
    elif (check_name([u'2160p', u'\\bweb\\b|web.?dl|web(rip|mux|hd)'], all) or check_name([u'2160p', u'itunes', u'[xh].?26[45]'], all)):
        ret = Quality.UHD_4K_WEBDL
    elif (check_name([u'4320p', u'\\bweb\\b|web.?dl|web(rip|mux|hd)'], all) or check_name([u'4320p', u'itunes', u'[xh].?26[45]'], all)):
        ret = Quality.UHD_8K_WEBDL
    elif check_name([u'2160p', u'blue?-?ray|hddvd|b[rd](rip|mux)', u'[xh].?26[45]'], all):
        ret = Quality.UHD_4K_BLURAY
    elif check_name([u'4320p', u'blue?-?ray|hddvd|b[rd](rip|mux)', u'[xh].?26[45]'], all):
        ret = Quality.UHD_8K_BLURAY
    return ret
