Private GIT

Skip to content
Snippets Groups Projects
Commit 9a9bc6c7 authored by p00chie's avatar p00chie Committed by miigotu
Browse files

Update common.py

parent 70e23a81
Branches
No related tags found
No related merge requests found
...@@ -338,7 +338,7 @@ class Quality(object): ...@@ -338,7 +338,7 @@ class Quality(object):
if ep.avc and ep.bluray: if ep.avc and ep.bluray:
result = Quality.UHD_4K_BLURAY if not full_res else Quality.UHD_8K_BLURAY result = Quality.UHD_4K_BLURAY if not full_res else Quality.UHD_8K_BLURAY
# WEB-DL # WEB-DL
elif (ep.avc and ep.itunes) or ep.web: elif ep.itunes or ep.amazon or ep.netflix or ep.web:
result = Quality.UHD_4K_WEBDL if not full_res else Quality.UHD_8K_WEBDL result = Quality.UHD_4K_WEBDL if not full_res else Quality.UHD_8K_WEBDL
# HDTV # HDTV
elif ep.avc and ep.tv == 'hd': elif ep.avc and ep.tv == 'hd':
...@@ -352,7 +352,7 @@ class Quality(object): ...@@ -352,7 +352,7 @@ class Quality(object):
if ep.avc and (ep.bluray or ep.hddvd): if ep.avc and (ep.bluray or ep.hddvd):
result = Quality.FULLHDBLURAY if full_res else Quality.HDBLURAY result = Quality.FULLHDBLURAY if full_res else Quality.HDBLURAY
# WEB-DL # WEB-DL
elif (ep.avc and ep.itunes) or ep.web: elif ep.itunes or ep.amazon or ep.netflix or ep.web:
result = Quality.FULLHDWEBDL if full_res else Quality.HDWEBDL result = Quality.FULLHDWEBDL if full_res else Quality.HDWEBDL
# HDTV # HDTV
elif ep.avc and ep.tv == 'hd': elif ep.avc and ep.tv == 'hd':
...@@ -382,6 +382,7 @@ class Quality(object): ...@@ -382,6 +382,7 @@ class Quality(object):
# SD TV/HD TV # SD TV/HD TV
result = Quality.SDTV result = Quality.SDTV
return Quality.UNKNOWN if result is None else result return Quality.UNKNOWN if result is None else result
@staticmethod @staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment