sane-bt-search: actually fix --h265 flag...

This commit is contained in:
2025-07-22 23:39:51 +00:00
parent 179c3a7ad7
commit 457beaca20

View File

@@ -167,11 +167,11 @@ def is_cat(cats: list[str], wanted_cats: list[str], default: bool = False) -> bo
return any(c in wanted_cats for c in cats) return any(c in wanted_cats for c in cats)
H265_MARKERS = { H265_MARKERS = {
"h265" "H265",
"h.265" "H.265",
"x265" "x265",
"x.265" "x.265",
"hevc" "HEVC",
} }
class Filter: class Filter:
@@ -194,7 +194,7 @@ class Filter:
@staticmethod @staticmethod
def is_h265(t: 'Torrent') -> bool: def is_h265(t: 'Torrent') -> bool:
return any(tag.upper() in t.title.upper() for tag in H265_MARKERS) return any(tag.lower() in t.title.lower() for tag in H265_MARKERS)
@staticmethod @staticmethod
def is_book(t: 'Torrent', default: bool = False) -> bool: def is_book(t: 'Torrent', default: bool = False) -> bool: