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)
H265_MARKERS = {
"h265"
"h.265"
"x265"
"x.265"
"hevc"
"H265",
"H.265",
"x265",
"x.265",
"HEVC",
}
class Filter:
@@ -194,7 +194,7 @@ class Filter:
@staticmethod
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
def is_book(t: 'Torrent', default: bool = False) -> bool: