Private GIT

Skip to content
Snippets Groups Projects
Commit fe53316e authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Added support for all types of x264 SD releases

parent 4d1e50ec
No related branches found
No related tags found
No related merge requests found
......@@ -124,9 +124,9 @@ class Quality:
checkName = lambda list, func: func([re.search(x, name, re.I) for x in list])
if checkName(["pdtv.xvid", "hdtv.xvid", "dsr.xvid", "hdtv.x264"], any) and not checkName(["720p", "1080p", "1080i"], any):
if checkName(["(pdtv|hdtv|dsr)\.(xvid|x264)"], all) and not checkName(["(720|1080)[pi]"], all):
return Quality.SDTV
elif checkName(["dvdrip.xvid", "bdrip.xvid", "dvdrip.divx", "dvdrip.ws.xvid"], any) and not checkName(["720p"], all):
elif checkName(["(dvdrip|bdrip)(\.ws)?\.(xvid|divx|x264)"], any) and not checkName(["(720|1080)[pi]"], all):
return Quality.SDDVD
elif checkName(["720p", "hdtv", "x264"], all) or checkName(["hr.ws.pdtv.x264"], any):
return Quality.HDTV
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment