Permalink
Browse files

Quality selection improved as suggested by Freekers and DragonReborn9…

…52 @ got.tweakers
  • Loading branch information...
1 parent 522a64b commit c386d9453adfa4d0a033172bd2b8b6706a1acb54 @rintje committed Feb 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sickbeard/common.py
View
4 sickbeard/common.py
@@ -128,9 +128,9 @@ def nameQuality(name):
return Quality.SDTV
elif checkName(["dvdrip.xvid", "bdrip.xvid", "dvdrip.divx", "dvdrip.ws.xvid"], any) and not checkName(["720p"], all):
return Quality.SDDVD
- elif checkName(["720p", "hdtv", "x264"], all) or checkName(["hr.ws.pdtv.x264"], any):
+ elif checkName(["720p", "hdtv", "x264"], all) or checkName (["720p", "hdtv"], any) or checkName(["hr.ws.pdtv.x264"], any) and not checkName(["xvid", "divx"], any):
return Quality.HDTV
- elif checkName(["720p", "web.dl"], all) or checkName(["720p", "itunes", "h.?264"], all):
+ elif checkName(["720p", "web.dl"], all) or checkName(["720p", "itunes", "h.?264"], all) or checkName (["720p", "web-dl"], all) and not checkName(["xvid", "divx"], any):
return Quality.HDWEBDL
elif checkName(["720p", "bluray", "x264"], all) or checkName(["720p", "hddvd", "x264"], all):
return Quality.HDBLURAY

0 comments on commit c386d94

Please sign in to comment.