fix: require qBittorrent metainfo export support

This commit is contained in:
2026-07-24 12:37:40 +00:00
parent 21ea431c56
commit d951e2e4fc
10 changed files with 17 additions and 14 deletions
+3 -1
View File
@@ -159,7 +159,9 @@ def _supported_qb_version(version: str) -> bool:
if match is None:
return False
major, minor = int(match.group(1)), int(match.group(2))
return major == 5 or (major == 4 and minor in {4, 5, 6})
# torrents/export, required to preserve exact metainfo before staging,
# was introduced in qBittorrent 4.5.0.
return major == 5 or (major == 4 and minor in {5, 6})
def _text_get(