Skip to content

Commit

Permalink
Duping - search name not uuid
Browse files Browse the repository at this point in the history
Fixes UHD in particular.
  • Loading branch information
Audionut committed Dec 5, 2024
1 parent d95cba4 commit af6aff2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/trackers/COMMON.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,25 +646,25 @@ async def filter_dupes(self, dupes, meta):
},
{
"key": "remux",
"uuid_flag": "remux" in meta.get('uuid', '').lower(),
"uuid_flag": "remux" in meta.get('name', '').lower(),
"condition": lambda each: "remux" in each.lower(),
"exclude_msg": lambda each: f"Excluding result due to 'remux' mismatch: {each}"
},
{
"key": "uhd",
"uuid_flag": "uhd" in meta.get('uuid', '').lower(),
"uuid_flag": "uhd" in meta.get('name', '').lower(),
"condition": lambda each: "uhd" in each.lower(),
"exclude_msg": lambda each: f"Excluding result due to 'UHD' mismatch: {each}"
},
{
"key": "webdl",
"uuid_flag": "webdl" in meta.get('uuid', '').lower(),
"condition": lambda each: "webdl" in each.lower(),
"uuid_flag": "web-dl" in meta.get('name', '').lower(),
"condition": lambda each: "webdl" in each.lower() or "web-dl" in each.lower(),
"exclude_msg": lambda each: f"Excluding result due to 'WEBDL' mismatch: {each}"
},
{
"key": "hdtv",
"uuid_flag": "hdtv" in meta.get('uuid', '').lower(),
"uuid_flag": "hdtv" in meta.get('name', '').lower(),
"condition": lambda each: "hdtv" in each.lower(),
"exclude_msg": lambda each: f"Excluding result due to 'HDTV' mismatch: {each}"
},
Expand Down

0 comments on commit af6aff2

Please sign in to comment.